[vlc-devel] commit: qt4_sout: use references for const QString. ( Rémi Duraffort )
git version control
git at videolan.org
Thu Mar 12 13:36:04 CET 2009
vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Wed Mar 11 16:31:26 2009 +0100| [8aa361fc0bb8d69fb0c184952d2f5366b45c860f] | committer: Rémi Duraffort
qt4_sout: use references for const QString.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=8aa361fc0bb8d69fb0c184952d2f5366b45c860f
---
modules/gui/qt4/dialogs/sout.hpp | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/modules/gui/qt4/dialogs/sout.hpp b/modules/gui/qt4/dialogs/sout.hpp
index 67ee3ab..4d822c2 100644
--- a/modules/gui/qt4/dialogs/sout.hpp
+++ b/modules/gui/qt4/dialogs/sout.hpp
@@ -42,7 +42,7 @@ class QTextEdit;
class SoutMrl
{
public:
- SoutMrl( const QString head = "")
+ SoutMrl( const QString& head = "")
{
mrl = head;
b_first = true;
@@ -54,7 +54,7 @@ public:
return mrl;
}
- void begin( QString module )
+ void begin( const QString& module )
{
if( !b_first )
mrl += ":";
@@ -68,7 +68,7 @@ public:
if( b_has_bracket )
mrl += "}";
}
- void option( const QString option, const QString value = "" )
+ void option( const QString& option, const QString& value = "" )
{
if( !b_has_bracket )
mrl += "{";
@@ -88,16 +88,16 @@ public:
}
}
}
- void option( const QString name, const int i_value, const int i_precision = 10 )
+ void option( const QString& name, const int i_value, const int i_precision = 10 )
{
option( name, QString::number( i_value, i_precision ) );
}
- void option( const QString name, const double f_value )
+ void option( const QString& name, const double f_value )
{
option( name, QString::number( f_value ) );
}
- void option( const QString name, const QString base, const int i_value, const int i_precision = 10 )
+ void option( const QString& name, const QString& base, const int i_value, const int i_precision = 10 )
{
option( name, base + ":" + QString::number( i_value, i_precision ) );
}
More information about the vlc-devel
mailing list