aboutsummaryrefslogtreecommitdiff
path: root/pw_protobuf/py/pw_protobuf/codegen_pwpb.py
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2024-06-18 23:07:06 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2024-06-18 23:07:06 +0000
commit92da5476fa903bf72ddd6d107a6ac75a9a4cfd04 (patch)
tree1ba9b93fda929860a1670e1d8941ba78ca479f8e /pw_protobuf/py/pw_protobuf/codegen_pwpb.py
parent47562fa92998f8f4289ae9a8048349067754d52e (diff)
parent3ccc229314cb5743e7c9494cc38454ce3dd0aeb0 (diff)
downloadpigweed-sdk-release.tar.gz
Snap for 11987826 from 3ccc229314cb5743e7c9494cc38454ce3dd0aeb0 to sdk-releasesdk-release
Change-Id: Iff8f03146d982650561e43e92139e40b407d49a7
Diffstat (limited to 'pw_protobuf/py/pw_protobuf/codegen_pwpb.py')
-rw-r--r--pw_protobuf/py/pw_protobuf/codegen_pwpb.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pw_protobuf/py/pw_protobuf/codegen_pwpb.py b/pw_protobuf/py/pw_protobuf/codegen_pwpb.py
index 261960787..865730b62 100644
--- a/pw_protobuf/py/pw_protobuf/codegen_pwpb.py
+++ b/pw_protobuf/py/pw_protobuf/codegen_pwpb.py
@@ -2931,7 +2931,7 @@ def generate_struct_for_message(
output.write_line(f'{type_name} {name};')
if not prop.use_callback():
- cmp.append(f'{name} == other.{name}')
+ cmp.append(f'this->{name} == other.{name}')
# Equality operator
output.write_line()
@@ -3121,7 +3121,7 @@ def generate_is_trivially_comparable_specialization(
is_trivially_comparable = False
break
- qualified_message = f'{message.cpp_namespace()}::Message'
+ qualified_message = f'::{message.cpp_namespace()}::Message'
output.write_line('template <>')
output.write_line(