Skip to content

Commit ddd6292

Browse files
committed
Fixes (again) #394
1 parent e54f535 commit ddd6292

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

regression-tests/test-results/version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
cppfront compiler - v0.2.1, build 8427:1621
2+
cppfront compiler - v0.2.1, build 8428:0755
33
Copyright(c) Herb Sutter, all rights reserved
44

55
SPDX-License-Identifier: CC-BY-NC-ND-4.0

source/cppfront.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3785,7 +3785,7 @@ class cppfront
37853785
assert(type_name);
37863786

37873787
printer.print_cpp2(
3788-
type_name->to_string(true) + pass + " that",
3788+
print_to_string( *type_name ) + pass + " that",
37893789
n.position()
37903790
);
37913791
return;
@@ -4143,7 +4143,7 @@ class cppfront
41434143
&& n.my_decl->parent_declaration->name()
41444144
);
41454145
printer.print_cpp2(
4146-
" -> " + n.my_decl->parent_declaration->name()->to_string(true) + "& ",
4146+
" -> " + print_to_string( *n.my_decl->parent_declaration->name() ) + "& ",
41474147
n.position()
41484148
);
41494149
}
@@ -4583,7 +4583,7 @@ class cppfront
45834583
if (is_object_before_base) {
45844584
assert (is_object_before_base->name());
45854585
object_name =
4586-
is_object_before_base->parent_declaration->name()->to_string(true)
4586+
print_to_string( *is_object_before_base->parent_declaration->name() )
45874587
+ "_"
45884588
+ (*object)->name()->to_string(true)
45894589
+ "_as_base";

0 commit comments

Comments
 (0)