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

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


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

diff --git a/src/scopes/audioscopes/audiospectrum.cpp b/src/scopes/audioscopes/audiospectrum.cpp
index 10ac5f3..dfdfc5c 100644
--- a/src/scopes/audioscopes/audiospectrum.cpp
+++ b/src/scopes/audioscopes/audiospectrum.cpp
@@ -458,7 +458,7 @@ QImage AudioSpectrum::renderHUD(uint)
                 davinci.drawRect(rect);
                 davinci.drawText(textRect, QString(
                                      i18n("%1 dB", QString("%1").arg(db, 0, 'f', 2))
-                                     + "\n"
+                                     + '\n'
                                      + i18n("%1 kHz", QString("%1").arg(freq/1000, 0, 'f', 2))));
             }
 
-- 
1.7.10.4





More information about the Kdenlive mailing list