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 /sfx2 | |
parent | 116fdcfa2785fa0c04bbeb40042f0897f07e689c (diff) |
Some cppcheck cleaning
Change-Id: I0b9d3b5f8283e2fddc96b220a755ba6bcdd11606
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/doc/doctempl.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sfx2/source/doc/doctempl.cxx b/sfx2/source/doc/doctempl.cxx index 9c171ee30d1c..4d8ea0724219 100644 --- a/sfx2/source/doc/doctempl.cxx +++ b/sfx2/source/doc/doctempl.cxx @@ -1048,7 +1048,6 @@ sal_Bool SfxDocumentTemplates::SetName( const OUString& rName, sal_uInt16 nRegio return sal_False; RegionData_Impl *pRegion = pImp->GetRegion( nRegion ); - DocTempl_EntryData_Impl *pEntry = NULL; if ( !pRegion ) return sal_False; @@ -1072,7 +1071,7 @@ sal_Bool SfxDocumentTemplates::SetName( const OUString& rName, sal_uInt16 nRegio } else { - pEntry = pRegion->GetEntry( nIdx ); + DocTempl_EntryData_Impl *pEntry = pRegion->GetEntry( nIdx ); if ( !pEntry ) return sal_False; |