diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2013-11-16 13:17:09 +0100 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2013-11-16 13:18:31 +0100 |
commit | 49ca17de76ba4a6396b9207a82d460cbae7c6d53 (patch) | |
tree | 72de36514c1f48a1d13d4ea6550c72ff2ca9af00 /sd | |
parent | 37915c87aa64e850a9803b72bc1dcf939ae8f1e6 (diff) |
cppcheck: reduce scope
Change-Id: Ifa54cc132f0c6591c57639f85e789b08a60b7f4b
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/view/drviewsa.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sd/source/ui/view/drviewsa.cxx b/sd/source/ui/view/drviewsa.cxx index a836a22d57f5..0d48e74f6bf4 100644 --- a/sd/source/ui/view/drviewsa.cxx +++ b/sd/source/ui/view/drviewsa.cxx @@ -733,7 +733,6 @@ void DrawViewShell::GetStatusBarState(SfxItemSet& rSet) { SdrLayerAdmin& rLayerAdmin = GetDoc()->GetLayerAdmin(); SdrLayerID nLayer = 0, nOldLayer = 0; - SdrLayer* pLayer = NULL; SdrObject* pObj = NULL; const SdrMarkList& rMarkList = mpDrawView->GetMarkedObjectList(); sal_uLong nMarkCount = rMarkList.GetMarkCount(); @@ -759,7 +758,7 @@ void DrawViewShell::GetStatusBarState(SfxItemSet& rSet) // Append the layer name to the current page number. if( bOneLayer && nMarkCount ) { - pLayer = rLayerAdmin.GetLayerPerID( nLayer ); + SdrLayer* pLayer = rLayerAdmin.GetLayerPerID( nLayer ); if( pLayer ) { aOUString += " (" ; |