Skip to content

Commit 7f9242a

Browse files
committed
clang-tidy: replace + with append()
Silences clang-tidy performance warning Signed-off-by: Rosen Penev <[email protected]>
1 parent 3e37c17 commit 7f9242a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/nikonmn_int.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3233,9 +3233,9 @@ std::ostream& Nikon3MakerNote::print0x009e(std::ostream& os, const Value& value,
32333233
std::string d = s.empty() ? "" : "; ";
32343234
const TagDetails* td = find(nikonRetouchHistory, l);
32353235
if (td) {
3236-
s = std::string(exvGettext(td->label_)) + d + s;
3236+
s = std::string(exvGettext(td->label_)).append(d).append(s);
32373237
} else {
3238-
s = std::string(_("Unknown")) + std::string(" (") + toString(l) + std::string(")") + d + s;
3238+
s = std::string(_("Unknown")).append(" (").append(toString(l)).append(")").append(d).append(s);
32393239
}
32403240
}
32413241
return os << s;

0 commit comments

Comments
 (0)