[vlc-devel] commit: Really kill reallocations. ( Rémi Duraffort )
git version control
git at videolan.org
Fri Dec 4 14:19:57 CET 2009
vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Fri Dec 4 14:19:19 2009 +0100| [124c9480615cfde6664ed526b47e79bece077628] | committer: Rémi Duraffort
Really kill reallocations.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=124c9480615cfde6664ed526b47e79bece077628
---
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 5f15961..4c36ce5 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[][28] = { ":/prefsmenu/sample_classic",
- ":/prefsmenu/sample_complete",
- ":/prefsmenu/sample_minimal",
- ":/prefsmenu/sample_skins" };
+ static 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