[vlc-devel] commit: qt4: use references to const QString. ( Rémi Duraffort )
git version control
git at videolan.org
Thu Jul 16 11:09:11 CEST 2009
vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Thu Jul 16 10:06:31 2009 +0200| [3d14423a3692291a13cba3587e28dfac53ec27b3] | committer: Rémi Duraffort
qt4: use references to const QString.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=3d14423a3692291a13cba3587e28dfac53ec27b3
---
modules/gui/qt4/menus.cpp | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/modules/gui/qt4/menus.cpp b/modules/gui/qt4/menus.cpp
index b5713e4..599263e 100644
--- a/modules/gui/qt4/menus.cpp
+++ b/modules/gui/qt4/menus.cpp
@@ -84,7 +84,7 @@ QMenu *QVLCMenu::recentsMenu = NULL;
* Add static entries to DP in menus
***************************************************************************/
void addDPStaticEntry( QMenu *menu,
- const QString text,
+ const QString& text,
const char *icon,
const char *member,
const char *shortcut = NULL )
@@ -113,7 +113,7 @@ void addDPStaticEntry( QMenu *menu,
***/
QAction* addMIMStaticEntry( intf_thread_t *p_intf,
QMenu *menu,
- const QString text,
+ const QString& text,
const char *icon,
const char *member,
bool bStatic = false )
@@ -1366,7 +1366,7 @@ int QVLCMenu::CreateChoicesMenu( QMenu *submenu, const char *psz_var,
}
void QVLCMenu::CreateAndConnect( QMenu *menu, const char *psz_var,
- QString text, QString help,
+ const QString& text, const QString& help,
int i_item_type, vlc_object_t *p_obj,
vlc_value_t val, int i_val_type,
bool checked )
More information about the vlc-devel
mailing list