Skip to content

Commit 0de82b0

Browse files
committed
apply suggested changes
1 parent ecbf6a1 commit 0de82b0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

source/cppfront.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ auto main(
7272
}
7373
else {
7474
std::cerr << arg.text << " - ambiguous compiler flag name, did you mean one of these?\n";
75-
for (auto const &a : ambiguous) {
75+
for (auto const& a : ambiguous) {
7676
std::cerr << " " << arg.text.front() << a << "\n";
7777
}
7878
}

source/to_cpp1.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -617,7 +617,7 @@ class positional_printer
617617
//
618618
auto open(
619619
std::string const& cpp2_filename_,
620-
std::string cpp1_filename_,
620+
std::string const& cpp1_filename_,
621621
std::vector<comment> const& comments,
622622
cpp2::source const& source,
623623
cpp2::parser const& parser
@@ -632,7 +632,7 @@ class positional_printer
632632
&& !pcomments
633633
&& "ICE: tried to call .open twice"
634634
);
635-
cpp1_filename = std::move(cpp1_filename_);
635+
cpp1_filename = cpp1_filename_;
636636
if (cpp1_filename == "stdout") {
637637
out = &std::cout;
638638
}

0 commit comments

Comments
 (0)