summaryrefslogtreecommitdiffstats
path: root/sc
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@suse.com>2012-03-05 21:17:14 -0500
committerKohei Yoshida <kohei.yoshida@gmail.com>2012-03-09 11:13:30 -0500
commitee4a52467e2c945ee29af89c8694044d7196360c (patch)
treed66a199c41b8e0e62369d8d191e3e48418fefb8e /sc
parentString and boolean cleanups. (diff)
downloadcore-ee4a52467e2c945ee29af89c8694044d7196360c.tar.gz
core-ee4a52467e2c945ee29af89c8694044d7196360c.zip
We can't take a reference here since the value will change after removal.
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/view/dbfunc3.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/ui/view/dbfunc3.cxx b/sc/source/ui/view/dbfunc3.cxx
index ea8719316e70..41cebf1fbc14 100644
--- a/sc/source/ui/view/dbfunc3.cxx
+++ b/sc/source/ui/view/dbfunc3.cxx
@@ -1012,7 +1012,7 @@ void ScDBFunc::DateGroupDataPilot( const ScDPNumGroupInfo& rInfo, sal_Int32 nPar
const ScDPSaveGroupDimension* pExistingGroup = pDimData->GetGroupDimForBase( aBaseDimName );
while ( pExistingGroup )
{
- const rtl::OUString& aGroupDimName = pExistingGroup->GetGroupDimName();
+ rtl::OUString aGroupDimName = pExistingGroup->GetGroupDimName();
pDimData->RemoveGroupDimension( aGroupDimName ); // pExistingGroup is deleted
// also remove SaveData settings for the dimension that no longer exists