[vlc-devel] [PATCH 2/2] move pointer to .rodata

Francois Cartegnie fcvlcdev at free.fr
Sun Jun 14 22:50:47 CEST 2009


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

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




More information about the vlc-devel mailing list