diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-03-03 09:59:31 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-03-04 00:51:57 +0000 |
commit | c6223049651d6607101ef04271773e478a429c8a (patch) | |
tree | f2bfb8c976896009409ae47780c324d3a9b51c77 /basctl | |
parent | 242ed97d9a74a08363e1306452bba20f06d673e4 (diff) |
V813: Decreased performance
Change-Id: Ica2563d9e8da15e19eb38246d4de54a1fcb75655
Diffstat (limited to 'basctl')
-rw-r--r-- | basctl/source/basicide/localizationmgr.cxx | 28 | ||||
-rw-r--r-- | basctl/source/inc/localizationmgr.hxx | 20 |
2 files changed, 24 insertions, 24 deletions
diff --git a/basctl/source/basicide/localizationmgr.cxx b/basctl/source/basicide/localizationmgr.cxx index ac18baeff86b..4b41ee3eed3a 100644 --- a/basctl/source/basicide/localizationmgr.cxx +++ b/basctl/source/basicide/localizationmgr.cxx @@ -188,14 +188,14 @@ OUString implCreatePureResourceId // anyway only one language should exist when calling this method then, // either the first one for mode SET_IDS or the last one for mode RESET_IDS sal_Int32 LocalizationMgr::implHandleControlResourceProperties - ( Any aControlAny, const OUString& aDialogName, const OUString& aCtrlName, + (const Any& rControlAny, const OUString& aDialogName, const OUString& aCtrlName, Reference< XStringResourceManager > xStringResourceManager, Reference< XStringResourceResolver > xSourceStringResolver, HandleResourceMode eMode ) { sal_Int32 nChangedCount = 0; Reference< XPropertySet > xPropertySet; - aControlAny >>= xPropertySet; + rControlAny >>= xPropertySet; if( xPropertySet.is() && xStringResourceManager.is()) { Sequence< Locale > aLocaleSeq = xStringResourceManager->getLocales(); @@ -736,13 +736,13 @@ void LocalizationMgr::handleRemoveLocales( const Sequence< Locale >& aLocaleSeq (void)bConsistant; } -void LocalizationMgr::handleSetDefaultLocale( Locale aLocale ) +void LocalizationMgr::handleSetDefaultLocale(const Locale& rLocale) { if( m_xStringResourceManager.is() ) { try { - m_xStringResourceManager->setDefaultLocale( aLocale ); + m_xStringResourceManager->setDefaultLocale(rLocale); } catch(const IllegalArgumentException&) { @@ -755,13 +755,13 @@ void LocalizationMgr::handleSetDefaultLocale( Locale aLocale ) } } -void LocalizationMgr::handleSetCurrentLocale( ::com::sun::star::lang::Locale aLocale ) +void LocalizationMgr::handleSetCurrentLocale(const css::lang::Locale& rLocale) { if( m_xStringResourceManager.is() ) { try { - m_xStringResourceManager->setCurrentLocale( aLocale, false ); + m_xStringResourceManager->setCurrentLocale(rLocale, false); } catch(const IllegalArgumentException&) { @@ -815,7 +815,7 @@ DialogWindow* FindDialogWindowForEditor( DlgEditor* pEditor ) void LocalizationMgr::setControlResourceIDsForNewEditorObject( DlgEditor* pEditor, - Any aControlAny, const OUString& aCtrlName ) + const Any& rControlAny, const OUString& aCtrlName ) { // Get library for DlgEditor DialogWindow* pDlgWin = FindDialogWindowForEditor( pEditor ); @@ -837,7 +837,7 @@ void LocalizationMgr::setControlResourceIDsForNewEditorObject( DlgEditor* pEdito OUString aDialogName = pDlgWin->GetName(); Reference< XStringResourceResolver > xDummyStringResolver; sal_Int32 nChangedCount = implHandleControlResourceProperties - ( aControlAny, aDialogName, aCtrlName, xStringResourceManager, + ( rControlAny, aDialogName, aCtrlName, xStringResourceManager, xDummyStringResolver, SET_IDS ); if( nChangedCount ) @@ -845,7 +845,7 @@ void LocalizationMgr::setControlResourceIDsForNewEditorObject( DlgEditor* pEdito } void LocalizationMgr::renameControlResourceIDsForEditorObject( DlgEditor* pEditor, - ::com::sun::star::uno::Any aControlAny, const OUString& aNewCtrlName ) + const css::uno::Any& rControlAny, const OUString& aNewCtrlName ) { // Get library for DlgEditor DialogWindow* pDlgWin = FindDialogWindowForEditor( pEditor ); @@ -867,13 +867,13 @@ void LocalizationMgr::renameControlResourceIDsForEditorObject( DlgEditor* pEdito OUString aDialogName = pDlgWin->GetName(); Reference< XStringResourceResolver > xDummyStringResolver; implHandleControlResourceProperties - ( aControlAny, aDialogName, aNewCtrlName, xStringResourceManager, + ( rControlAny, aDialogName, aNewCtrlName, xStringResourceManager, xDummyStringResolver, RENAME_CONTROL_IDS ); } void LocalizationMgr::deleteControlResourceIDsForDeletedEditorObject( DlgEditor* pEditor, - Any aControlAny, const OUString& aCtrlName ) + const Any& rControlAny, const OUString& aCtrlName ) { // Get library for DlgEditor DialogWindow* pDlgWin = FindDialogWindowForEditor( pEditor ); @@ -891,7 +891,7 @@ void LocalizationMgr::deleteControlResourceIDsForDeletedEditorObject( DlgEditor* OUString aDialogName = pDlgWin->GetName(); Reference< XStringResourceResolver > xDummyStringResolver; sal_Int32 nChangedCount = implHandleControlResourceProperties - ( aControlAny, aDialogName, aCtrlName, xStringResourceManager, + ( rControlAny, aDialogName, aCtrlName, xStringResourceManager, xDummyStringResolver, REMOVE_IDS_FROM_RESOURCE ); if( nChangedCount ) @@ -1047,7 +1047,7 @@ void LocalizationMgr::setResourceIDsForDialog( Reference< container::XNameContai } void LocalizationMgr::copyResourcesForPastedEditorObject( DlgEditor* pEditor, - Any aControlAny, const OUString& aCtrlName, + const Any& rControlAny, const OUString& aCtrlName, Reference< XStringResourceResolver > xSourceStringResolver ) { // Get library for DlgEditor @@ -1069,7 +1069,7 @@ void LocalizationMgr::copyResourcesForPastedEditorObject( DlgEditor* pEditor, OUString aDialogName = pDlgWin->GetName(); implHandleControlResourceProperties - ( aControlAny, aDialogName, aCtrlName, xStringResourceManager, + ( rControlAny, aDialogName, aCtrlName, xStringResourceManager, xSourceStringResolver, MOVE_RESOURCES ); } diff --git a/basctl/source/inc/localizationmgr.hxx b/basctl/source/inc/localizationmgr.hxx index a23c6c8486cd..54376cc44a10 100644 --- a/basctl/source/inc/localizationmgr.hxx +++ b/basctl/source/inc/localizationmgr.hxx @@ -52,7 +52,7 @@ class LocalizationMgr MOVE_RESOURCES, COPY_RESOURCES }; - static sal_Int32 implHandleControlResourceProperties( ::com::sun::star::uno::Any aControlAny, + static sal_Int32 implHandleControlResourceProperties(const css::uno::Any& rControlAny, const OUString& aDialogName, const OUString& aCtrlName, ::com::sun::star::uno::Reference< ::com::sun::star::resource::XStringResourceManager > xStringResourceManager, ::com::sun::star::uno::Reference< ::com::sun::star::resource:: @@ -88,22 +88,22 @@ public: void handleRemoveLocales( const ::com::sun::star::uno::Sequence < ::com::sun::star::lang::Locale >& aLocaleSeq ); - void handleSetDefaultLocale( ::com::sun::star::lang::Locale aLocale ); + void handleSetDefaultLocale(const css::lang::Locale& rLocale); - void handleSetCurrentLocale( ::com::sun::star::lang::Locale aLocale ); + void handleSetCurrentLocale(const css::lang::Locale& rLocale); void handleBasicStarted( void ); void handleBasicStopped( void ); - static void setControlResourceIDsForNewEditorObject( DlgEditor* pEditor, - ::com::sun::star::uno::Any aControlAny, const OUString& aCtrlName ); + static void setControlResourceIDsForNewEditorObject(DlgEditor* pEditor, + const css::uno::Any& rControlAny, const OUString& aCtrlName); - static void renameControlResourceIDsForEditorObject( DlgEditor* pEditor, - ::com::sun::star::uno::Any aControlAny, const OUString& aNewCtrlName ); + static void renameControlResourceIDsForEditorObject(DlgEditor* pEditor, + const css::uno::Any& rControlAny, const OUString& aNewCtrlName); - static void deleteControlResourceIDsForDeletedEditorObject( DlgEditor* pEditor, - ::com::sun::star::uno::Any aControlAny, const OUString& aCtrlName ); + static void deleteControlResourceIDsForDeletedEditorObject(DlgEditor* pEditor, + const css::uno::Any& rControlAny, const OUString& aCtrlName); static void setStringResourceAtDialog( const ScriptDocument& rDocument, const OUString& aLibName, const OUString& aDlgName, ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameContainer > xDialogModel ); @@ -128,7 +128,7 @@ public: ::com::sun::star::uno::Reference< ::com::sun::star::resource::XStringResourceManager > xStringResourceManager ); static void copyResourcesForPastedEditorObject( DlgEditor* pEditor, - ::com::sun::star::uno::Any aControlAny, const OUString& aCtrlName, + const css::uno::Any& rControlAny, const OUString& aCtrlName, ::com::sun::star::uno::Reference< ::com::sun::star::resource:: XStringResourceResolver > xSourceStringResolver ); |