[Libreoffice-commits] .: sw/source
Julien Nabet
serval2412 at kemper.freedesktop.org
Sun Feb 20 13:56:25 PST 2011
sw/source/filter/html/htmlgrin.cxx | 2 +-
sw/source/filter/rtf/swparrtf.hxx | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 95bcdc250ddeb03af9a7bf6d2e57bdd822683ac5
Author: Julien Nabet <serval2412 at yahoo.fr>
Date: Sun Feb 20 22:55:52 2011 +0100
Some cppcheck cleaning
diff --git a/sw/source/filter/html/htmlgrin.cxx b/sw/source/filter/html/htmlgrin.cxx
index 2925eb6..57251e5 100644
--- a/sw/source/filter/html/htmlgrin.cxx
+++ b/sw/source/filter/html/htmlgrin.cxx
@@ -1014,9 +1014,9 @@ void SwHTMLParser::InsertBodyOptions()
if( aLang.Len() )
{
LanguageType eLang = MsLangId::convertIsoStringToLanguage( aLang );
- sal_uInt16 nWhich = 0;
if( LANGUAGE_DONTKNOW != eLang )
{
+ sal_uInt16 nWhich = 0;
switch( SvtLanguageOptions::GetScriptTypeOfLanguage( eLang ) )
{
case SCRIPTTYPE_LATIN:
diff --git a/sw/source/filter/rtf/swparrtf.hxx b/sw/source/filter/rtf/swparrtf.hxx
index 12723eb..82e78d5 100644
--- a/sw/source/filter/rtf/swparrtf.hxx
+++ b/sw/source/filter/rtf/swparrtf.hxx
@@ -242,7 +242,7 @@ private:
{
bool bHasHeader, bHasFooter;
short nSwHLo, nHdUL, nSwFUp, nFtUL, nSwUp, nSwLo;
- wwULSpaceData() : bHasHeader(false), bHasFooter(false) {}
+ wwULSpaceData() : bHasHeader(false), bHasFooter(false), nSwHLo(0), nHdUL(0), nSwFUp(0), nFtUL(0), nSwUp(0), nSwLo(0) {}
};
void SetSegmentToPageDesc(const rtfSection &rSection, bool bTitlePage,
More information about the Libreoffice-commits
mailing list