diff options
author | Eike Rathke <erack@redhat.com> | 2016-03-01 20:45:02 +0100 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2016-03-01 20:54:05 +0100 |
commit | 02caf16fc7d0455a235341966db89c77cbf1da0d (patch) | |
tree | ff91adcab0e94c10d2e51c7f8fc28a08615c1f40 /include | |
parent | 5a1cd2f30d9cc8b9a6ce5eaed06af199080055b7 (diff) |
remnants of the past ...
... when OUString had to be automatically converted to String, but
nowadays we can return a const reference instead.
Change-Id: Ic3a68e100bd176b223575da8713c9dbdfe71c3d7
Diffstat (limited to 'include')
-rw-r--r-- | include/svl/srchitem.hxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/svl/srchitem.hxx b/include/svl/srchitem.hxx index 18547bc69757..472f1ac3dd61 100644 --- a/include/svl/srchitem.hxx +++ b/include/svl/srchitem.hxx @@ -114,10 +114,10 @@ public: SvxSearchCmd GetCommand() const { return m_nCommand; } void SetCommand(SvxSearchCmd nNewCommand) { m_nCommand = nNewCommand; } - inline const OUString GetSearchString() const; + inline const OUString& GetSearchString() const; inline void SetSearchString(const OUString& rNewString); - inline const OUString GetReplaceString() const; + inline const OUString& GetReplaceString() const; inline void SetReplaceString(const OUString& rNewString); inline bool GetWordOnly() const; @@ -200,7 +200,7 @@ public: bool HasStartPoint() const; }; -const OUString SvxSearchItem::GetSearchString() const +const OUString& SvxSearchItem::GetSearchString() const { return m_aSearchOpt.searchString; } @@ -210,7 +210,7 @@ void SvxSearchItem::SetSearchString(const OUString& rNewString) m_aSearchOpt.searchString = rNewString; } -const OUString SvxSearchItem::GetReplaceString() const +const OUString& SvxSearchItem::GetReplaceString() const { return m_aSearchOpt.replaceString; } |