[Libreoffice-commits] core.git: include/svl

Eike Rathke erack at redhat.com
Tue Mar 1 19:54:26 UTC 2016


 include/svl/srchitem.hxx |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

New commits:
commit 02caf16fc7d0455a235341966db89c77cbf1da0d
Author: Eike Rathke <erack at redhat.com>
Date:   Tue Mar 1 20:45:02 2016 +0100

    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

diff --git a/include/svl/srchitem.hxx b/include/svl/srchitem.hxx
index 18547bc..472f1ac 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;
 }


More information about the Libreoffice-commits mailing list