[vlc-devel] commit: qt4: kill some reallocations. ( Rémi Duraffort )

git version control git at videolan.org
Fri Dec 4 12:04:28 CET 2009


vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Fri Dec  4 12:02:59 2009 +0100| [30d7534d428da5ea2b8be15e4164edbebfab2c4d] | committer: Rémi Duraffort 

qt4: kill some reallocations.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=30d7534d428da5ea2b8be15e4164edbebfab2c4d
---

 modules/gui/qt4/components/preferences_widgets.cpp |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/modules/gui/qt4/components/preferences_widgets.cpp b/modules/gui/qt4/components/preferences_widgets.cpp
index 396da64..5f15961 100644
--- a/modules/gui/qt4/components/preferences_widgets.cpp
+++ b/modules/gui/qt4/components/preferences_widgets.cpp
@@ -211,10 +211,10 @@ void InterfacePreviewWidget::setPreview( int comboid )
     /* Need to move resources references as soon as qt4.cpp
        local defines has been moved somewhere else
     */
-    const char * pixmaps[] = { ":/prefsmenu/sample_classic",
-                               ":/prefsmenu/sample_complete",
-                               ":/prefsmenu/sample_minimal",
-                                ":/prefsmenu/sample_skins" };
+    const char pixmaps[][28] = { ":/prefsmenu/sample_classic",
+                                 ":/prefsmenu/sample_complete",
+                                 ":/prefsmenu/sample_minimal",
+                                 ":/prefsmenu/sample_skins" };
     setPixmap( QPixmap( pixmaps[ comboid ] ) );
 }
 




More information about the vlc-devel mailing list