[Libreoffice-commits] .: vcl/source
Julien Nabet
serval2412 at kemper.freedesktop.org
Sun Jul 17 15:43:46 PDT 2011
vcl/source/fontsubset/gsub.cxx | 4 ++--
vcl/source/window/menu.cxx | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
New commits:
commit 867109c2ee7d075e3b10bc429aea5c70fef55e5e
Author: Julien Nabet <serval2412 at yahoo.fr>
Date: Mon Jul 18 00:43:43 2011 +0200
Some cppcheck cleaning
diff --git a/vcl/source/fontsubset/gsub.cxx b/vcl/source/fontsubset/gsub.cxx
index a21871e..b9482aa 100644
--- a/vcl/source/fontsubset/gsub.cxx
+++ b/vcl/source/fontsubset/gsub.cxx
@@ -162,7 +162,7 @@ int ReadGSUB( struct _TrueTypeFont* pTTFile,
}
}
- if( !aFeatureIndexList.size() )
+ if( aFeatureIndexList.empty() )
return true;
UshortList aLookupIndexList;
@@ -318,7 +318,7 @@ int ReadGSUB( struct _TrueTypeFont* pTTFile,
}
// now apply the glyph substitutions that have been collected in this subtable
- if( aSubstVector.size() > 0 )
+ if( !aSubstVector.empty() )
{
GlyphSubstitution* pGSubstitution = new GlyphSubstitution;
pTTFile->pGSubstitution = (void*)pGSubstitution;
diff --git a/vcl/source/window/menu.cxx b/vcl/source/window/menu.cxx
index 459dee2..c5129d1 100644
--- a/vcl/source/window/menu.cxx
+++ b/vcl/source/window/menu.cxx
@@ -156,7 +156,7 @@ struct MenuItemData
pSalMenuItem ( NULL )
{}
~MenuItemData();
- bool HasCheck()
+ bool HasCheck() const
{
return bChecked || ( nBits & ( MIB_RADIOCHECK | MIB_CHECKABLE | MIB_AUTOCHECK ) );
}
More information about the Libreoffice-commits
mailing list