summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiikka Heikkinen <miikka.heikkinen@digia.com>2010-12-13 14:08:36 (GMT)
committerMiikka Heikkinen <miikka.heikkinen@digia.com>2010-12-13 14:28:35 (GMT)
commit50d3c15bd16f4e70327f8de30c8c0df5ed2f995c (patch)
tree3dcd282ffc6a6acf8d8591bbab36fd8588c445b1
parentd5fe82b2ab939727f573429605abd99c039a99d1 (diff)
downloadQt-50d3c15bd16f4e70327f8de30c8c0df5ed2f995c.zip
Qt-50d3c15bd16f4e70327f8de30c8c0df5ed2f995c.tar.gz
Qt-50d3c15bd16f4e70327f8de30c8c0df5ed2f995c.tar.bz2
Minor optimization
Use already defined factory pointer instead of re-asking it twice. Reviewed-by: Janne Koskinen
-rw-r--r--src/gui/kernel/qwidget_s60.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/kernel/qwidget_s60.cpp b/src/gui/kernel/qwidget_s60.cpp
index 609307c..d6ad3c3 100644
--- a/src/gui/kernel/qwidget_s60.cpp
+++ b/src/gui/kernel/qwidget_s60.cpp
@@ -504,7 +504,7 @@ void QWidgetPrivate::show_sys()
CEikButtonGroupContainer *cba = CEikButtonGroupContainer::NewL(CEikButtonGroupContainer::ECba,
CEikButtonGroupContainer::EHorizontal,ui,R_AVKON_SOFTKEYS_EMPTY_WITH_IDS);
- CEikButtonGroupContainer *oldCba = CEikonEnv::Static()->AppUiFactory()->SwapButtonGroup(cba);
+ CEikButtonGroupContainer *oldCba = factory->SwapButtonGroup(cba);
Q_ASSERT(!oldCba);
S60->setButtonGroupContainer(cba);
@@ -513,7 +513,7 @@ void QWidgetPrivate::show_sys()
menuBar->SetMenuType(CEikMenuBar::EMenuOptions);
S60->appUi()->AddToStackL(menuBar,ECoeStackPriorityMenu,ECoeStackFlagRefusesFocus);
- CEikMenuBar *oldMenu = CEikonEnv::Static()->AppUiFactory()->SwapMenuBar(menuBar);
+ CEikMenuBar *oldMenu = factory->SwapMenuBar(menuBar);
Q_ASSERT(!oldMenu);
)