diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2011-04-22 15:37:54 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2011-04-22 15:39:25 +0200 |
commit | 66c11b5218ec510c9aff3afb7b141d02dcecc048 (patch) | |
tree | 82bff730b278d67354a402554f02f5b43ec52ef7 /desktop | |
parent | 147824a979908971ca4bf376fdd82d88df604530 (diff) |
Some cppcheck cleaning
Diffstat (limited to 'desktop')
4 files changed, 7 insertions, 7 deletions
diff --git a/desktop/source/deployment/gui/dp_gui_updatedialog.cxx b/desktop/source/deployment/gui/dp_gui_updatedialog.cxx index d678c8626465..b2682f90c853 100644 --- a/desktop/source/deployment/gui/dp_gui_updatedialog.cxx +++ b/desktop/source/deployment/gui/dp_gui_updatedialog.cxx @@ -1381,7 +1381,7 @@ IMPL_LINK(UpdateDialog, okHandler, void *, EMPTYARG) //If users are going to update a shared extension then we need //to warn them typedef ::std::vector<UpdateData>::const_iterator CIT; - for (CIT i = m_enabledUpdates.begin(); i < m_enabledUpdates.end(); i++) + for (CIT i = m_enabledUpdates.begin(); i < m_enabledUpdates.end(); ++i) { OSL_ASSERT(i->aInstalledPackage.is()); //If the user has no write access to the shared folder then the update diff --git a/desktop/source/deployment/manager/dp_extensionmanager.cxx b/desktop/source/deployment/manager/dp_extensionmanager.cxx index 3bfad74a3f32..2151642df43c 100644 --- a/desktop/source/deployment/manager/dp_extensionmanager.cxx +++ b/desktop/source/deployment/manager/dp_extensionmanager.cxx @@ -102,7 +102,7 @@ OUString CompIdentifiers::getName(::std::vector<Reference<deploy::XPackage> > co //get the first non-null reference Reference<deploy::XPackage> extension; ::std::vector<Reference<deploy::XPackage> >::const_iterator it = a.begin(); - for (; it != a.end(); it++) + for (; it != a.end(); ++it) { if (it->is()) { @@ -250,13 +250,13 @@ void ExtensionManager::addExtensionsToMap( ::std::list<OUString>::const_iterator citNames = m_repositoryNames.begin(); int index = 0; - for (;citNames != m_repositoryNames.end(); citNames++, index++) + for (;citNames != m_repositoryNames.end(); ++citNames, ++index) { if (citNames->equals(repository)) break; } - for (int i = 0; i < seqExt.getLength(); i++) + for (int i = 0; i < seqExt.getLength(); ++i) { Reference<deploy::XPackage> const & xExtension = seqExt[i]; OUString id = dp_misc::getIdentifier(xExtension); @@ -333,7 +333,7 @@ ExtensionManager::getExtensionsWithSameIdentifier( //throw an IllegalArgumentException if there is no extension at all. typedef ::std::list<Reference<deploy::XPackage> >::const_iterator CIT; - for (CIT i = listExtensions.begin(); i != listExtensions.end(); i++) + for (CIT i = listExtensions.begin(); i != listExtensions.end(); ++i) bHasExtension |= i->is(); if (!bHasExtension) throw lang::IllegalArgumentException( diff --git a/desktop/source/deployment/registry/dp_backenddb.cxx b/desktop/source/deployment/registry/dp_backenddb.cxx index becfc14d254d..5054564eae25 100644 --- a/desktop/source/deployment/registry/dp_backenddb.cxx +++ b/desktop/source/deployment/registry/dp_backenddb.cxx @@ -429,7 +429,7 @@ void BackendDb::writeSimpleList( listNode, css::uno::UNO_QUERY_THROW)); typedef ::std::list<OUString>::const_iterator ITC_ITEMS; - for (ITC_ITEMS i = list.begin(); i != list.end(); i++) + for (ITC_ITEMS i = list.begin(); i != list.end(); ++i) { const Reference<css::xml::dom::XNode> memberNode( doc->createElementNS(sNameSpace, sPrefix + sMemberTagName), css::uno::UNO_QUERY_THROW); diff --git a/desktop/source/pkgchk/unopkg/unopkg_misc.cxx b/desktop/source/pkgchk/unopkg/unopkg_misc.cxx index b4993e24f4b3..d8f30ed26ae3 100644 --- a/desktop/source/pkgchk/unopkg/unopkg_misc.cxx +++ b/desktop/source/pkgchk/unopkg/unopkg_misc.cxx @@ -355,7 +355,7 @@ void printf_packages( { typedef ::std::vector< Reference<deployment::XPackage> >::const_iterator I_EXT; int index = 0; - for (I_EXT i = allExtensions.begin(); i != allExtensions.end(); i++, index++) + for (I_EXT i = allExtensions.begin(); i != allExtensions.end(); ++i, ++index) { if (vecUnaccepted[index]) printf_unaccepted_licenses(*i); |