Skip to content

Commit

Permalink
fixup! feat: ScopedTimer accept numeric arguments as formatstring arg…
Browse files Browse the repository at this point in the history
…uments
  • Loading branch information
Swiftb0y committed May 15, 2024
1 parent 7236833 commit ca7c9e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util/timer.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ class ScopedTimer {
auto assembledKey = QString(std::forward<T>(key));
if constexpr (sizeof...(args) > 0) {
// only try to call QString::arg when we've been given parameters
assembledKey = key.arg(convertToQStringConvertible(std::forward<Ts>(args))...);
assembledKey = assembledKey.arg(convertToQStringConvertible(std::forward<Ts>(args))...);
}
m_timer = std::make_optional<Timer>(assembledKey, compute);
m_timer->start();
Expand Down

0 comments on commit ca7c9e1

Please sign in to comment.