[Kdenlive-devel] [PATCH 14/46] vectorscope.cpp: Use char for single character

Mikko Rapeli mikko.rapeli at iki.fi
Sat Jul 14 07:56:01 UTC 2012


Should be faster than using a full string. Found by krazy.
---
 src/scopes/colorscopes/vectorscope.cpp |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/scopes/colorscopes/vectorscope.cpp b/src/scopes/colorscopes/vectorscope.cpp
index 55437ff..7666133 100644
--- a/src/scopes/colorscopes/vectorscope.cpp
+++ b/src/scopes/colorscopes/vectorscope.cpp
@@ -506,7 +506,7 @@ void Vectorscope::slotGainChanged(int newval)
 {
     QLocale locale;
     m_gain = 1 + (float)newval/10;
-    ui->lblGain->setText(locale.toString(m_gain, 'f', 1) + "x");
+    ui->lblGain->setText(locale.toString(m_gain, 'f', 1) + 'x');
     forceUpdateScope();
 }
 
-- 
1.7.10.4





More information about the Kdenlive mailing list