[vlc-devel] commit: qt4: add some usefull const. ( Rémi Duraffort )
git version control
git at videolan.org
Tue Mar 31 16:05:29 CEST 2009
vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Tue Mar 31 11:04:54 2009 +0200| [d95bfc3f14f7590717ef68eaf4c58275fa633e2f] | committer: Rémi Duraffort
qt4: add some usefull const.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d95bfc3f14f7590717ef68eaf4c58275fa633e2f
---
modules/gui/qt4/util/qvlcframe.hpp | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/modules/gui/qt4/util/qvlcframe.hpp b/modules/gui/qt4/util/qvlcframe.hpp
index 059497f..39d6e55 100644
--- a/modules/gui/qt4/util/qvlcframe.hpp
+++ b/modules/gui/qt4/util/qvlcframe.hpp
@@ -51,7 +51,7 @@ class QVLCTools
settings->setValue("geometry", widget->saveGeometry());
}
static void saveWidgetPosition( intf_thread_t *p_intf,
- QString configName,
+ const QString& configName,
QWidget *widget)
{
getSettings()->beginGroup( configName );
@@ -83,7 +83,7 @@ class QVLCTools
}
static bool restoreWidgetPosition( intf_thread_t *p_intf,
- QString configName,
+ const QString& configName,
QWidget *widget,
QSize defSize = QSize( 0, 0 ),
QPoint defPos = QPoint( 0, 0 ) )
@@ -131,14 +131,14 @@ public:
protected:
intf_thread_t *p_intf;
- void readSettings( QString name,
+ void readSettings( const QString& name,
QSize defSize = QSize( 1, 1 ),
QPoint defPos = QPoint( 0, 0 ) )
{
QVLCTools::restoreWidgetPosition(p_intf, name, this, defSize, defPos);
}
- void writeSettings( QString name )
+ void writeSettings( const QString& name )
{
QVLCTools::saveWidgetPosition( p_intf, name, this);
}
@@ -218,12 +218,12 @@ protected:
intf_thread_t *p_intf;
QSize mainSize;
- void readSettings( QString name, QSize defSize )
+ void readSettings( const QString& name, QSize defSize )
{
QVLCTools::restoreWidgetPosition( p_intf, name, this, defSize);
}
- void readSettings( QString name )
+ void readSettings( const QString& name )
{
QVLCTools::restoreWidgetPosition( p_intf, name, this);
}
@@ -237,7 +237,7 @@ protected:
QVLCTools::restoreWidgetPosition(settings, this, defSize);
}
- void writeSettings(QString name )
+ void writeSettings( const QString& name )
{
QVLCTools::saveWidgetPosition( p_intf, name, this);
}
More information about the vlc-devel
mailing list