diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-01-25 15:05:53 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-01-26 08:01:13 +0100 |
commit | b9fe4f26eaf1099b8d0907b8d9cbf52c86914466 (patch) | |
tree | fd80c20323ce7c72303c98a11454f607888d6c86 /sd/source/ui/view/viewshel.cxx | |
parent | de60c73db31ec34ffb2e008829083bb7ddcb3061 (diff) |
rename some local variables
mostly to make the job of my very aggressive unused local vars plugin
easier
Change-Id: Ifc21a920841f8589f8b7e10de39dba6622a5d501
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87399
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sd/source/ui/view/viewshel.cxx')
-rw-r--r-- | sd/source/ui/view/viewshel.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sd/source/ui/view/viewshel.cxx b/sd/source/ui/view/viewshel.cxx index 916e30d306bd..3ac055930198 100644 --- a/sd/source/ui/view/viewshel.cxx +++ b/sd/source/ui/view/viewshel.cxx @@ -1401,7 +1401,7 @@ void ViewShell::SetCurrentFunction( const rtl::Reference<FuPoor>& xFunction) { if( mxCurrentFunction.is() && (mxOldFunction != mxCurrentFunction) ) mxCurrentFunction->Dispose(); - rtl::Reference<FuPoor> xTemp( mxCurrentFunction ); + rtl::Reference<FuPoor> xDisposeAfterNewOne( mxCurrentFunction ); mxCurrentFunction = xFunction; } @@ -1410,7 +1410,7 @@ void ViewShell::SetOldFunction(const rtl::Reference<FuPoor>& xFunction) if( mxOldFunction.is() && (xFunction != mxOldFunction) && (mxCurrentFunction != mxOldFunction) ) mxOldFunction->Dispose(); - rtl::Reference<FuPoor> xTemp( mxOldFunction ); + rtl::Reference<FuPoor> xDisposeAfterNewOne( mxOldFunction ); mxOldFunction = xFunction; } @@ -1445,7 +1445,7 @@ void ViewShell::DeactivateCurrentFunction( bool bPermanent /* == false */ ) if( mxCurrentFunction != mxOldFunction ) mxCurrentFunction->Dispose(); - rtl::Reference<FuPoor> xTemp( mxCurrentFunction ); + rtl::Reference<FuPoor> xDisposeAfterNewOne( mxCurrentFunction ); mxCurrentFunction.clear(); } } @@ -1462,7 +1462,7 @@ void ViewShell::DisposeFunctions() if(mxOldFunction.is()) { - rtl::Reference<FuPoor> xTemp( mxOldFunction ); + rtl::Reference<FuPoor> xDisposeAfterNewOne( mxOldFunction ); mxOldFunction->Dispose(); mxOldFunction.clear(); } |