Skip to content

Commit

Permalink
Use std::forward in string formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Monsterovich committed Nov 17, 2024
1 parent 608ce03 commit d95bae6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/framework/wzstring.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ class WzString {
template <typename... P>
static WzString format(char const *format, P &&... params)
{
return WzString::fromUtf8(astringf(format, params...));
return WzString::fromUtf8(astringf(format, std::forward<P>(params)...));
}

const std::string& toUtf8() const;
Expand Down

0 comments on commit d95bae6

Please sign in to comment.