diff options
author | Noel Grandin <noel@peralex.com> | 2014-03-17 09:16:07 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-03-17 13:30:51 +0200 |
commit | cc2700245d911c14114ce7346357b1a4d008cc06 (patch) | |
tree | 01cbc1d1796ac8bab2e844d6d8bb29d8932fac3b /sd/source/ui/inc | |
parent | 769a6c20c4eb9e081cdc46dd638f67927fc7bc25 (diff) |
sd: prefer passing OUString by reference
Change-Id: Ide21e1f51284fb2d4c7aaaa358417c6080b2fdde
Diffstat (limited to 'sd/source/ui/inc')
-rw-r--r-- | sd/source/ui/inc/RemoteServer.hxx | 4 | ||||
-rw-r--r-- | sd/source/ui/inc/optsitem.hxx | 2 | ||||
-rw-r--r-- | sd/source/ui/inc/unmodpg.hxx | 2 | ||||
-rw-r--r-- | sd/source/ui/inc/unoaprms.hxx | 4 | ||||
-rw-r--r-- | sd/source/ui/inc/unprlout.hxx | 4 |
5 files changed, 8 insertions, 8 deletions
diff --git a/sd/source/ui/inc/RemoteServer.hxx b/sd/source/ui/inc/RemoteServer.hxx index f873fcd512a3..3c450f0e4e87 100644 --- a/sd/source/ui/inc/RemoteServer.hxx +++ b/sd/source/ui/inc/RemoteServer.hxx @@ -45,7 +45,7 @@ namespace sd OUString mAddress; enum PROTOCOL { NETWORK = 1, BLUETOOTH }; - ClientInfo( const OUString rName, const OUString rAddress ) : + ClientInfo( const OUString& rName, const OUString& rAddress ) : mName( rName ), mAddress( rAddress ) {} }; @@ -66,7 +66,7 @@ namespace sd // For the control dialog SD_DLLPUBLIC static std::vector<ClientInfo*> getClients(); SD_DLLPUBLIC static sal_Bool connectClient( ClientInfo *pClient, - OUString aPin ); + const OUString& aPin ); /// ensure that discoverability (eg. for Bluetooth) is enabled SD_DLLPUBLIC static void ensureDiscoverable(); diff --git a/sd/source/ui/inc/optsitem.hxx b/sd/source/ui/inc/optsitem.hxx index a3856b0f3928..01b22b53893b 100644 --- a/sd/source/ui/inc/optsitem.hxx +++ b/sd/source/ui/inc/optsitem.hxx @@ -59,7 +59,7 @@ private: public: - SdOptionsItem( const SdOptionsGeneric& rParent, const OUString rSubTree ); + SdOptionsItem( const SdOptionsGeneric& rParent, const OUString& rSubTree ); virtual ~SdOptionsItem(); virtual void Commit(); diff --git a/sd/source/ui/inc/unmodpg.hxx b/sd/source/ui/inc/unmodpg.hxx index f96f4ac5b7d8..fd74d186b8d5 100644 --- a/sd/source/ui/inc/unmodpg.hxx +++ b/sd/source/ui/inc/unmodpg.hxx @@ -45,7 +45,7 @@ public: ModifyPageUndoAction( SdDrawDocument* pTheDoc, SdPage* pThePage, - OUString aTheNewName, + const OUString& aTheNewName, AutoLayout eTheNewAutoLayout, sal_Bool bTheNewBckgrndVisible, sal_Bool bTheNewBckgrndObjsVisible); diff --git a/sd/source/ui/inc/unoaprms.hxx b/sd/source/ui/inc/unoaprms.hxx index e866a7c650a7..678641dc9e8a 100644 --- a/sd/source/ui/inc/unoaprms.hxx +++ b/sd/source/ui/inc/unoaprms.hxx @@ -104,7 +104,7 @@ public: { bOldDimHide = bTheOldDimHide; bNewDimHide = bTheNewDimHide; } void SetSoundOn(sal_Bool bTheOldSoundOn, sal_Bool bTheNewSoundOn) { bOldSoundOn = bTheOldSoundOn; bNewSoundOn = bTheNewSoundOn; } - void SetSound(OUString aTheOldSound, OUString aTheNewSound) + void SetSound(const OUString& aTheOldSound, const OUString& aTheNewSound) { aOldSoundFile = aTheOldSound; aNewSoundFile = aTheNewSound; } void SetBlueScreen(Color aTheOldBlueScreen, Color aTheNewBlueScreen) { aOldBlueScreen = aTheOldBlueScreen; aNewBlueScreen = aTheNewBlueScreen; } @@ -114,7 +114,7 @@ public: { pOldPathObj = pTheOldPath; pNewPathObj = pTheNewPath; } void SetClickAction(::com::sun::star::presentation::ClickAction eTheOldAction, ::com::sun::star::presentation::ClickAction eTheNewAction) { eOldClickAction = eTheOldAction; eNewClickAction = eTheNewAction; } - void SetBookmark(OUString aTheOldBookmark, OUString aTheNewBookmark) + void SetBookmark(const OUString& aTheOldBookmark, const OUString& aTheNewBookmark) { aOldBookmark = aTheOldBookmark; aNewBookmark = aTheNewBookmark; } void SetInvisibleInPres(sal_Bool bTheOldInvisibleInPres, sal_Bool bTheNewInvisibleInPres) { bOldInvisibleInPres = bTheOldInvisibleInPres; bNewInvisibleInPres = bTheNewInvisibleInPres; } diff --git a/sd/source/ui/inc/unprlout.hxx b/sd/source/ui/inc/unprlout.hxx index 1b72d1940cd2..3ff3a90ee08c 100644 --- a/sd/source/ui/inc/unprlout.hxx +++ b/sd/source/ui/inc/unprlout.hxx @@ -39,8 +39,8 @@ class SdPresentationLayoutUndoAction : public SdUndoAction public: TYPEINFO(); SdPresentationLayoutUndoAction(SdDrawDocument* pTheDoc, - OUString aTheOldLayoutName, - OUString aTheNewLayoutName, + const OUString& aTheOldLayoutName, + const OUString& aTheNewLayoutName, AutoLayout eTheOldAutoLayout, AutoLayout eTheNewAutoLayout, sal_Bool bSet, |