diff options
author | Noel Grandin <noel@peralex.com> | 2014-03-17 09:17:48 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-03-17 13:30:52 +0200 |
commit | 12bb4fdddd3c72a9fc9209288cc8e827bf353920 (patch) | |
tree | 8ef0f79c52fc7207bc13f7e56a70389605335f7a /cui/source/inc | |
parent | 7e8af4b249132764d9eca559b4a6e2449d4d26f8 (diff) |
cui: prefer passing OUString by reference
Change-Id: I1a4d36a329a0eac8b9bb3d9b0a5434ffc843bde2
Diffstat (limited to 'cui/source/inc')
-rw-r--r-- | cui/source/inc/autocdlg.hxx | 4 | ||||
-rw-r--r-- | cui/source/inc/hlmarkwn.hxx | 8 | ||||
-rw-r--r-- | cui/source/inc/scriptdlg.hxx | 4 |
3 files changed, 8 insertions, 8 deletions
diff --git a/cui/source/inc/autocdlg.hxx b/cui/source/inc/autocdlg.hxx index ab5a31cc7826..1a0292f50191 100644 --- a/cui/source/inc/autocdlg.hxx +++ b/cui/source/inc/autocdlg.hxx @@ -273,8 +273,8 @@ public: virtual void StateChanged(StateChangedType nStateChange); void SetLanguage(LanguageType eSet); - void DeleteEntry(OUString sShort, OUString sLong); - void NewEntry(OUString sShort, OUString sLong, bool bKeepSourceFormatting); + void DeleteEntry(const OUString& sShort, const OUString& sLong); + void NewEntry(const OUString& sShort, const OUString& sLong, bool bKeepSourceFormatting); }; // class OfaAutocorrExceptPage --------------------------------------------- diff --git a/cui/source/inc/hlmarkwn.hxx b/cui/source/inc/hlmarkwn.hxx index 4e7652a8ef6b..ecc027190462 100644 --- a/cui/source/inc/hlmarkwn.hxx +++ b/cui/source/inc/hlmarkwn.hxx @@ -71,10 +71,10 @@ private: sal_uInt16 mnError; protected: - sal_Bool RefreshFromDoc( OUString aURL ); + sal_Bool RefreshFromDoc( const OUString& aURL ); void RestoreLastSelection(); - SvTreeListEntry* FindEntry(OUString aStrName); + SvTreeListEntry* FindEntry(const OUString& aStrName); void ClearTree(); int FillTree( ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess > xLinks, SvTreeListEntry* pParentEntry =NULL ); @@ -88,8 +88,8 @@ public: ~SvxHlinkDlgMarkWnd(); sal_Bool MoveTo ( Point aNewPos ); - void RefreshTree(OUString aStrURL); - bool SelectEntry(OUString aStrMark); + void RefreshTree(const OUString& aStrURL); + bool SelectEntry(const OUString& aStrMark); sal_Bool ConnectToDialog( sal_Bool bDoit = sal_True ); diff --git a/cui/source/inc/scriptdlg.hxx b/cui/source/inc/scriptdlg.hxx index 89db028fed58..bb3fa60f0916 100644 --- a/cui/source/inc/scriptdlg.hxx +++ b/cui/source/inc/scriptdlg.hxx @@ -86,7 +86,7 @@ public: SvTreeListEntry * pParent, bool bChildrenOnDemand, std::auto_ptr< SFEntry > aUserData, - OUString factoryURL ); + const OUString& factoryURL ); SvTreeListEntry * insertEntry(OUString const & rText, sal_uInt16 nBitmap, SvTreeListEntry * pParent, bool bChildrenOnDemand, @@ -177,7 +177,7 @@ protected: public: // prob need another arg in the ctor // to specify the language or provider - SvxScriptOrgDialog( Window* pParent, OUString language ); + SvxScriptOrgDialog( Window* pParent, const OUString& language ); ~SvxScriptOrgDialog(); virtual short Execute(); |