summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2013-06-03 11:53:10 +0200
committerStephan Bergmann <sbergman@redhat.com>2013-06-03 11:55:43 +0200
commit9b5640777d4f373c8e25f600445936b8215f1be3 (patch)
treeb21a905954d5743c5d39cc328862787bc7cacd8f
parent89edebf672a5f031e60fe257536a5ca90c54aba8 (diff)
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
-rw-r--r--sc/source/core/tool/interpr2.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sc/source/core/tool/interpr2.cxx b/sc/source/core/tool/interpr2.cxx
index 91397b4d632b..b42cf4d49d8d 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;