From 02caf16fc7d0455a235341966db89c77cbf1da0d Mon Sep 17 00:00:00 2001 From: Eike Rathke Date: Tue, 1 Mar 2016 20:45:02 +0100 Subject: 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 --- include/svl/srchitem.hxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'include') 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; } -- cgit