projects
/
pulseview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5cb2867
)
cursorpair.cpp: Fix a clazy warning (-Wclazy-qstring-arg).
author
Uwe Hermann
<uwe@hermann-uwe.de>
Sat, 19 May 2018 20:28:16 +0000
(22:28 +0200)
committer
Uwe Hermann
<uwe@hermann-uwe.de>
Sat, 19 May 2018 20:28:16 +0000
(22:28 +0200)
[...]/pv/views/trace/cursorpair.cpp:174:34: warning: Use multi-arg instead [-Wclazy-qstring-arg]
return QString("%1 / %2").arg(s1).arg(s2);
pv/views/trace/cursorpair.cpp
patch
|
blob
|
history
diff --git
a/pv/views/trace/cursorpair.cpp
b/pv/views/trace/cursorpair.cpp
index 86198c5217a2f1129bc750d6f553f2ee51c6eeea..b67609dacdce624b8c19dbce09625a272ffb735a 100644
(file)
--- a/
pv/views/trace/cursorpair.cpp
+++ b/
pv/views/trace/cursorpair.cpp
@@
-171,7
+171,7
@@
QString CursorPair::format_string()
const QString s2 = util::format_time_si(
1 / diff, pv::util::SIPrefix::unspecified, 4, "Hz", false);
- return QString("%1 / %2").arg(s1
).arg(
s2);
+ return QString("%1 / %2").arg(s1
,
s2);
}
void CursorPair::compute_text_size(QPainter &p)