From: Uwe Hermann Date: Sat, 19 May 2018 20:28:16 +0000 (+0200) Subject: cursorpair.cpp: Fix a clazy warning (-Wclazy-qstring-arg). X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=076ce70c06de8bb05a8e8970788ecfd73b63346d;p=pulseview.git cursorpair.cpp: Fix a clazy warning (-Wclazy-qstring-arg). [...]/pv/views/trace/cursorpair.cpp:174:34: warning: Use multi-arg instead [-Wclazy-qstring-arg] return QString("%1 / %2").arg(s1).arg(s2); --- diff --git a/pv/views/trace/cursorpair.cpp b/pv/views/trace/cursorpair.cpp index 86198c52..b67609da 100644 --- 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)