[Libreoffice-commits] .: sfx2/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Sun Oct 7 08:11:31 PDT 2012
sfx2/source/doc/docfile.cxx | 1 +
sfx2/source/doc/doctemplates.cxx | 3 +--
2 files changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 1f79b55bcabe2a627573e711a04d413d478c5882
Author: Julien Nabet <serval2412 at yahoo.fr>
Date: Sun Oct 7 17:09:36 2012 +0200
Some cppcheck cleaning
Change-Id: I9ce4af18d1cdbf694093309a026fd6c738590b82
diff --git a/sfx2/source/doc/docfile.cxx b/sfx2/source/doc/docfile.cxx
index 9c199ad..995be9c 100644
--- a/sfx2/source/doc/docfile.cxx
+++ b/sfx2/source/doc/docfile.cxx
@@ -325,6 +325,7 @@ SfxMedium_Impl::SfxMedium_Impl( SfxMedium* pAntiImplP ) :
bIsStorage( false ),
bUseInteractionHandler( true ),
bAllowDefaultIntHdl( false ),
+ bDisposeStorage( false ),
bStorageBasedOnInStream( false ),
m_bSalvageMode( false ),
m_bVersionsAlreadyLoaded( false ),
diff --git a/sfx2/source/doc/doctemplates.cxx b/sfx2/source/doc/doctemplates.cxx
index 76a4f5d..e1f1986 100644
--- a/sfx2/source/doc/doctemplates.cxx
+++ b/sfx2/source/doc/doctemplates.cxx
@@ -618,12 +618,11 @@ void SfxDocTplService_Impl::getDirList()
sal_Bool SfxDocTplService_Impl::needsUpdate()
{
OUString aPropName( PROPERTY_NEEDSUPDATE );
- sal_Bool bHasProperty = sal_False;
sal_Bool bNeedsUpdate = sal_True;
Any aValue;
// Get the template dir list
- bHasProperty = getProperty( maRootContent, aPropName, aValue );
+ sal_Bool bHasProperty = getProperty( maRootContent, aPropName, aValue );
if ( bHasProperty )
aValue >>= bNeedsUpdate;
More information about the Libreoffice-commits
mailing list