diff options
author | Kohei Yoshida <kohei.yoshida@suse.com> | 2012-03-05 21:17:14 -0500 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-03-09 11:13:30 -0500 |
commit | ee4a52467e2c945ee29af89c8694044d7196360c (patch) | |
tree | d66a199c41b8e0e62369d8d191e3e48418fefb8e /sc | |
parent | 1472ce9ff250d6abc3380bb16b1c7a6c255e6fd2 (diff) |
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.cxx | 2 |
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 |