Kaydet (Commit) d24b5182 authored tarafından Bjoern Michaelsen's avatar Bjoern Michaelsen

Revert "Some cppcheck cleaning"

This reverts commit b21661ce.

this breaks with ../framework/source/lomenubar/MenuItemInfo.hxx:49:12: error: expected ‘;’ at end of member declaration
üst feca4833
...@@ -74,31 +74,31 @@ MenuItemInfo::setVisible (gboolean is_visible) ...@@ -74,31 +74,31 @@ MenuItemInfo::setVisible (gboolean is_visible)
//Getters //Getters
gchar* gchar*
MenuItemInfo::getLabel const() MenuItemInfo::getLabel ()
{ {
return m_label; return m_label;
} }
gboolean gboolean
MenuItemInfo::getEnabled const() MenuItemInfo::getEnabled ()
{ {
return m_is_enabled; return m_is_enabled;
} }
gint gint
MenuItemInfo::getCheckState const() MenuItemInfo::getCheckState ()
{ {
return m_check_state; return m_check_state;
} }
const gchar* const gchar*
MenuItemInfo::getCheckType const() MenuItemInfo::getCheckType ()
{ {
return m_check_type; return m_check_type;
} }
gboolean gboolean
MenuItemInfo::getVisible const() MenuItemInfo::getVisible ()
{ {
return m_is_visible; return m_is_visible;
} }
......
...@@ -46,11 +46,11 @@ class MenuItemInfo { ...@@ -46,11 +46,11 @@ class MenuItemInfo {
void setVisible (gboolean is_visible); void setVisible (gboolean is_visible);
//Getters //Getters
gchar* getLabel const(); gchar* getLabel ();
gboolean getEnabled const(); gboolean getEnabled ();
gint getCheckState const(); gint getCheckState ();
const gchar* getCheckType const(); const gchar* getCheckType ();
gboolean getVisible const(); gboolean getVisible ();
}; };
#endif // __MENU_ITEM_INFO_HXX__ #endif // __MENU_ITEM_INFO_HXX__
......
...@@ -113,13 +113,13 @@ StringResourceImpl::StringResourceImpl( const Reference< XComponentContext >& rx ...@@ -113,13 +113,13 @@ StringResourceImpl::StringResourceImpl( const Reference< XComponentContext >& rx
StringResourceImpl::~StringResourceImpl() StringResourceImpl::~StringResourceImpl()
{ {
for( LocaleItemVectorIt it = m_aLocaleItemVector.begin(); it != m_aLocaleItemVector.end(); ++it ) for( LocaleItemVectorIt it = m_aLocaleItemVector.begin(); it != m_aLocaleItemVector.end(); it++ )
{ {
LocaleItem* pLocaleItem = *it; LocaleItem* pLocaleItem = *it;
delete pLocaleItem; delete pLocaleItem;
} }
for( LocaleItemVectorIt it = m_aDeletedLocaleItemVector.begin(); it != m_aDeletedLocaleItemVector.end(); ++it ) for( LocaleItemVectorIt it = m_aDeletedLocaleItemVector.begin(); it != m_aDeletedLocaleItemVector.end(); it++ )
{ {
LocaleItem* pLocaleItem = *it; LocaleItem* pLocaleItem = *it;
delete pLocaleItem; delete pLocaleItem;
...@@ -316,7 +316,7 @@ Sequence< Locale > StringResourceImpl::getLocales( ) ...@@ -316,7 +316,7 @@ Sequence< Locale > StringResourceImpl::getLocales( )
Sequence< Locale > aLocalSeq( nSize ); Sequence< Locale > aLocalSeq( nSize );
Locale* pLocales = aLocalSeq.getArray(); Locale* pLocales = aLocalSeq.getArray();
int iTarget = 0; int iTarget = 0;
for( LocaleItemVectorConstIt it = m_aLocaleItemVector.begin(); it != m_aLocaleItemVector.end(); ++it ) for( LocaleItemVectorConstIt it = m_aLocaleItemVector.begin(); it != m_aLocaleItemVector.end(); it++ )
{ {
LocaleItem* pLocaleItem = *it; LocaleItem* pLocaleItem = *it;
pLocales[iTarget] = pLocaleItem->m_locale; pLocales[iTarget] = pLocaleItem->m_locale;
...@@ -556,7 +556,7 @@ void StringResourceImpl::removeLocale( const Locale& locale ) ...@@ -556,7 +556,7 @@ void StringResourceImpl::removeLocale( const Locale& locale )
if( m_pCurrentLocaleItem == pRemoveItem || if( m_pCurrentLocaleItem == pRemoveItem ||
m_pDefaultLocaleItem == pRemoveItem ) m_pDefaultLocaleItem == pRemoveItem )
{ {
for( LocaleItemVectorIt it = m_aLocaleItemVector.begin(); it != m_aLocaleItemVector.end(); ++it ) for( LocaleItemVectorIt it = m_aLocaleItemVector.begin(); it != m_aLocaleItemVector.end(); it++ )
{ {
LocaleItem* pLocaleItem = *it; LocaleItem* pLocaleItem = *it;
if( pLocaleItem != pRemoveItem ) if( pLocaleItem != pRemoveItem )
...@@ -576,7 +576,7 @@ void StringResourceImpl::removeLocale( const Locale& locale ) ...@@ -576,7 +576,7 @@ void StringResourceImpl::removeLocale( const Locale& locale )
} }
} }
} }
for( LocaleItemVectorIt it = m_aLocaleItemVector.begin(); it != m_aLocaleItemVector.end(); ++it ) for( LocaleItemVectorIt it = m_aLocaleItemVector.begin(); it != m_aLocaleItemVector.end(); it++ )
{ {
LocaleItem* pLocaleItem = *it; LocaleItem* pLocaleItem = *it;
if( pLocaleItem == pRemoveItem ) if( pLocaleItem == pRemoveItem )
...@@ -656,7 +656,7 @@ LocaleItem* StringResourceImpl::getItemForLocale ...@@ -656,7 +656,7 @@ LocaleItem* StringResourceImpl::getItemForLocale
LocaleItem* pRetItem = NULL; LocaleItem* pRetItem = NULL;
// Search for locale // Search for locale
for( LocaleItemVectorConstIt it = m_aLocaleItemVector.begin(); it != m_aLocaleItemVector.end(); ++it ) for( LocaleItemVectorConstIt it = m_aLocaleItemVector.begin(); it != m_aLocaleItemVector.end(); it++ )
{ {
LocaleItem* pLocaleItem = *it; LocaleItem* pLocaleItem = *it;
if( pLocaleItem ) if( pLocaleItem )
...@@ -689,7 +689,7 @@ LocaleItem* StringResourceImpl::getClosestMatchItemForLocale( const Locale& loca ...@@ -689,7 +689,7 @@ LocaleItem* StringResourceImpl::getClosestMatchItemForLocale( const Locale& loca
// Search for locale // Search for locale
for( sal_Int32 iPass = 0 ; iPass <= 2 ; ++iPass ) for( sal_Int32 iPass = 0 ; iPass <= 2 ; ++iPass )
{ {
for( LocaleItemVectorConstIt it = m_aLocaleItemVector.begin(); it != m_aLocaleItemVector.end(); ++it ) for( LocaleItemVectorConstIt it = m_aLocaleItemVector.begin(); it != m_aLocaleItemVector.end(); it++ )
{ {
LocaleItem* pLocaleItem = *it; LocaleItem* pLocaleItem = *it;
if( pLocaleItem ) if( pLocaleItem )
...@@ -1048,7 +1048,7 @@ void StringResourcePersistenceImpl::implStoreAtStorage ...@@ -1048,7 +1048,7 @@ void StringResourcePersistenceImpl::implStoreAtStorage
} }
} }
for( LocaleItemVectorConstIt it = m_aLocaleItemVector.begin(); it != m_aLocaleItemVector.end(); ++it ) for( LocaleItemVectorConstIt it = m_aLocaleItemVector.begin(); it != m_aLocaleItemVector.end(); it++ )
{ {
LocaleItem* pLocaleItem = *it; LocaleItem* pLocaleItem = *it;
if( pLocaleItem != NULL && (bStoreAll || pLocaleItem->m_bModified) && if( pLocaleItem != NULL && (bStoreAll || pLocaleItem->m_bModified) &&
...@@ -1087,7 +1087,7 @@ void StringResourcePersistenceImpl::implStoreAtStorage ...@@ -1087,7 +1087,7 @@ void StringResourcePersistenceImpl::implStoreAtStorage
if( bUsedForStore ) if( bUsedForStore )
{ {
for( LocaleItemVectorIt it = m_aChangedDefaultLocaleVector.begin(); for( LocaleItemVectorIt it = m_aChangedDefaultLocaleVector.begin();
it != m_aChangedDefaultLocaleVector.end(); ++it ) it != m_aChangedDefaultLocaleVector.end(); it++ )
{ {
LocaleItem* pLocaleItem = *it; LocaleItem* pLocaleItem = *it;
if( pLocaleItem != NULL ) if( pLocaleItem != NULL )
...@@ -1182,7 +1182,7 @@ void StringResourcePersistenceImpl::implKillChangedDefaultFiles ...@@ -1182,7 +1182,7 @@ void StringResourcePersistenceImpl::implKillChangedDefaultFiles
{ {
// Delete files for changed defaults // Delete files for changed defaults
for( LocaleItemVectorIt it = m_aChangedDefaultLocaleVector.begin(); for( LocaleItemVectorIt it = m_aChangedDefaultLocaleVector.begin();
it != m_aChangedDefaultLocaleVector.end(); ++it ) it != m_aChangedDefaultLocaleVector.end(); it++ )
{ {
LocaleItem* pLocaleItem = *it; LocaleItem* pLocaleItem = *it;
if( pLocaleItem != NULL ) if( pLocaleItem != NULL )
...@@ -1214,7 +1214,7 @@ void StringResourcePersistenceImpl::implStoreAtLocation ...@@ -1214,7 +1214,7 @@ void StringResourcePersistenceImpl::implStoreAtLocation
if( bUsedForStore || bKillAll ) if( bUsedForStore || bKillAll )
implKillRemovedLocaleFiles( Location, aNameBase, xFileAccess ); implKillRemovedLocaleFiles( Location, aNameBase, xFileAccess );
for( LocaleItemVectorConstIt it = m_aLocaleItemVector.begin(); it != m_aLocaleItemVector.end(); ++it ) for( LocaleItemVectorConstIt it = m_aLocaleItemVector.begin(); it != m_aLocaleItemVector.end(); it++ )
{ {
LocaleItem* pLocaleItem = *it; LocaleItem* pLocaleItem = *it;
if( pLocaleItem != NULL && (bStoreAll || bKillAll || pLocaleItem->m_bModified) && if( pLocaleItem != NULL && (bStoreAll || bKillAll || pLocaleItem->m_bModified) &&
...@@ -1417,7 +1417,7 @@ Sequence< sal_Int8 > StringResourcePersistenceImpl::exportBinary( ) ...@@ -1417,7 +1417,7 @@ Sequence< sal_Int8 > StringResourcePersistenceImpl::exportBinary( )
sal_Int32 iLocale = 0; sal_Int32 iLocale = 0;
sal_Int32 iDefault = 0; sal_Int32 iDefault = 0;
for( LocaleItemVectorConstIt it = m_aLocaleItemVector.begin(); for( LocaleItemVectorConstIt it = m_aLocaleItemVector.begin();
it != m_aLocaleItemVector.end(); ++it,++iLocale ) it != m_aLocaleItemVector.end(); it++,iLocale++ )
{ {
LocaleItem* pLocaleItem = *it; LocaleItem* pLocaleItem = *it;
if( pLocaleItem != NULL && loadLocale( pLocaleItem ) ) if( pLocaleItem != NULL && loadLocale( pLocaleItem ) )
...@@ -1726,7 +1726,7 @@ bool checkNamingSceme( const ::rtl::OUString& aName, const ::rtl::OUString& aNam ...@@ -1726,7 +1726,7 @@ bool checkNamingSceme( const ::rtl::OUString& aName, const ::rtl::OUString& aNam
void StringResourcePersistenceImpl::implLoadAllLocales( void ) void StringResourcePersistenceImpl::implLoadAllLocales( void )
{ {
for( LocaleItemVectorIt it = m_aLocaleItemVector.begin(); it != m_aLocaleItemVector.end(); ++it ) for( LocaleItemVectorIt it = m_aLocaleItemVector.begin(); it != m_aLocaleItemVector.end(); it++ )
{ {
LocaleItem* pLocaleItem = *it; LocaleItem* pLocaleItem = *it;
if( pLocaleItem != NULL ) if( pLocaleItem != NULL )
......
...@@ -620,7 +620,7 @@ static DdeTopic* FindTopic( const String & rLinkName, sal_uInt16* pItemStt ) ...@@ -620,7 +620,7 @@ static DdeTopic* FindTopic( const String & rLinkName, sal_uInt16* pItemStt )
for( int i = 0; i < 2; ++i ) for( int i = 0; i < 2; ++i )
{ {
for( std::vector<DdeTopic*>::iterator iterTopic = rTopics.begin(); for( std::vector<DdeTopic*>::iterator iterTopic = rTopics.begin();
iterTopic != rTopics.end(); ++iterTopic ) iterTopic != rTopics.end(); iterTopic++ )
if( (*iterTopic)->GetName() == sTopic ) if( (*iterTopic)->GetName() == sTopic )
return *iterTopic; return *iterTopic;
......
...@@ -1048,7 +1048,7 @@ namespace sfx2 ...@@ -1048,7 +1048,7 @@ namespace sfx2
if ( xFilterGroupManager.is() ) if ( xFilterGroupManager.is() )
{ {
// Add both html/pdf filter as a filter group to get a separator between both groups // Add both html/pdf filter as a filter group to get a separator between both groups
if ( !aImportantFilterGroup.empty() ) if ( aImportantFilterGroup.size() > 0 )
{ {
Sequence< StringPair > aFilters( aImportantFilterGroup.size() ); Sequence< StringPair > aFilters( aImportantFilterGroup.size() );
for ( sal_Int32 i = 0; i < (sal_Int32)aImportantFilterGroup.size(); i++ ) for ( sal_Int32 i = 0; i < (sal_Int32)aImportantFilterGroup.size(); i++ )
...@@ -1068,7 +1068,7 @@ namespace sfx2 ...@@ -1068,7 +1068,7 @@ namespace sfx2
} }
} }
if ( !aFilterGroup.empty() ) if ( aFilterGroup.size() > 0 )
{ {
Sequence< StringPair > aFilters( aFilterGroup.size() ); Sequence< StringPair > aFilters( aFilterGroup.size() );
for ( sal_Int32 i = 0; i < (sal_Int32)aFilterGroup.size(); i++ ) for ( sal_Int32 i = 0; i < (sal_Int32)aFilterGroup.size(); i++ )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment