[Libreoffice-commits] core.git: sc/source

Stephan Bergmann sbergman at redhat.com
Mon Jun 3 02:56:09 PDT 2013


 sc/source/core/tool/interpr2.cxx |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit 9b5640777d4f373c8e25f600445936b8215f1be3
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Mon Jun 3 11:53:10 2013 +0200

    ScInterpreter::GetString can return reference to shared string instance
    
    ...ScInterpreter::aTempStr member.  Regression introduced with
    a11be8a87a749f56d5c5514bbd9ffd90b3f75392 "use size_t where possible and fix some
    more places" causing JunitTest_sc_unoapi's
    sc.ScDDELinkObj::com::sun::star::util::XRefreshable to fail.
    
    Change-Id: I50227b004e37f68c5040d4ace90a79300f711be8

diff --git a/sc/source/core/tool/interpr2.cxx b/sc/source/core/tool/interpr2.cxx
index 91397b4..b42cf4d 100644
--- a/sc/source/core/tool/interpr2.cxx
+++ b/sc/source/core/tool/interpr2.cxx
@@ -2255,9 +2255,9 @@ void ScInterpreter::ScDde()
         sal_uInt8 nMode = SC_DDE_DEFAULT;
         if (nParamCount == 4)
             nMode = (sal_uInt8) ::rtl::math::approxFloor(GetDouble());
-        const OUString& aItem  = GetString();
-        const OUString& aTopic = GetString();
-        const OUString& aAppl  = GetString();
+        OUString aItem  = GetString();
+        OUString aTopic = GetString();
+        OUString aAppl  = GetString();
 
         if (nMode > SC_DDE_TEXT)
             nMode = SC_DDE_DEFAULT;


More information about the Libreoffice-commits mailing list