diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2013-02-20 22:38:38 +0100 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2013-02-20 22:39:00 +0100 |
commit | eda11cbfaf974905183ea10e4ffa89b90a401d98 (patch) | |
tree | a89a8b72565c7a6619f243449b5f8000f331e8da /sw | |
parent | 116fdcfa2785fa0c04bbeb40042f0897f07e689c (diff) |
Some cppcheck cleaning
Change-Id: I0b9d3b5f8283e2fddc96b220a755ba6bcdd11606
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/ui/misc/pgfnote.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sw/source/ui/misc/pgfnote.cxx b/sw/source/ui/misc/pgfnote.cxx index 7cb69a460193..c369b2b20451 100644 --- a/sw/source/ui/misc/pgfnote.cxx +++ b/sw/source/ui/misc/pgfnote.cxx @@ -221,14 +221,13 @@ void SwFootNotePage::Reset(const SfxItemSet &rSet) // Separator Color SfxObjectShell* pDocSh = SfxObjectShell::Current(); - const SfxPoolItem* pColorItem = NULL; XColorListRef pColorList; OSL_ENSURE( pDocSh, "DocShell not found!" ); if ( pDocSh ) { - pColorItem = pDocSh->GetItem( SID_COLOR_TABLE ); + const SfxPoolItem* pColorItem = pDocSh->GetItem( SID_COLOR_TABLE ); if ( pColorItem != NULL ) pColorList = ( (SvxColorListItem*)pColorItem )->GetColorList(); } |