summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2012-04-05 21:15:13 +0200
committerJulien Nabet <serval2412@yahoo.fr>2012-04-05 21:17:09 +0200
commit7d2508572a0389bcb1c803911024296f411af653 (patch)
treecfa0f95bf150c77b763908e77fc422ce6efc2a28
parent7a56eef989b828c495d34c34de99d1b863f223e2 (diff)
Fix Prefer prefix ++/-- operators
Includes too replacement < by != for comparison between current and end iterators
-rw-r--r--desktop/source/deployment/gui/dp_gui_extlistbox.cxx2
-rw-r--r--desktop/source/deployment/gui/dp_gui_updateinstalldialog.cxx2
-rw-r--r--desktop/source/deployment/manager/dp_extensionmanager.cxx2
-rw-r--r--desktop/source/deployment/manager/dp_properties.cxx2
-rw-r--r--desktop/source/deployment/registry/dp_backenddb.cxx2
-rw-r--r--desktop/source/deployment/registry/package/dp_package.cxx4
-rw-r--r--framework/source/uielement/toolbarsmenucontroller.cxx2
-rw-r--r--jvmfwk/source/elements.cxx2
-rw-r--r--package/source/xstor/ohierarchyholder.cxx2
9 files changed, 10 insertions, 10 deletions
diff --git a/desktop/source/deployment/gui/dp_gui_extlistbox.cxx b/desktop/source/deployment/gui/dp_gui_extlistbox.cxx
index 96c5b1c0bfb2..03bf3cb5329c 100644
--- a/desktop/source/deployment/gui/dp_gui_extlistbox.cxx
+++ b/desktop/source/deployment/gui/dp_gui_extlistbox.cxx
@@ -337,7 +337,7 @@ void ExtensionBox_Impl::select( const rtl::OUString & sName )
const ::osl::MutexGuard aGuard( m_entriesMutex );
typedef ::std::vector< TEntry_Impl >::const_iterator It;
- for ( It iIter = m_vEntries.begin(); iIter < m_vEntries.end(); iIter++ )
+ for ( It iIter = m_vEntries.begin(); iIter != m_vEntries.end(); ++iIter )
{
if ( sName.equals( (*iIter)->m_sTitle ) )
{
diff --git a/desktop/source/deployment/gui/dp_gui_updateinstalldialog.cxx b/desktop/source/deployment/gui/dp_gui_updateinstalldialog.cxx
index 8852e939c40d..80236785d8ae 100644
--- a/desktop/source/deployment/gui/dp_gui_updateinstalldialog.cxx
+++ b/desktop/source/deployment/gui/dp_gui_updateinstalldialog.cxx
@@ -424,7 +424,7 @@ void UpdateInstallDialog::Thread::downloadExtensions()
//Construct a string of all messages contained in the exceptions plus the respective download URLs
::rtl::OUStringBuffer buf(256);
typedef ::std::vector< ::std::pair<OUString, cssu::Exception > >::const_iterator CIT;
- for (CIT j = vecExceptions.begin(); j != vecExceptions.end(); j++)
+ for (CIT j = vecExceptions.begin(); j != vecExceptions.end(); ++j)
{
if (j != vecExceptions.begin())
buf.appendAscii("\n");
diff --git a/desktop/source/deployment/manager/dp_extensionmanager.cxx b/desktop/source/deployment/manager/dp_extensionmanager.cxx
index d7654b67407e..b5822ecfbcc4 100644
--- a/desktop/source/deployment/manager/dp_extensionmanager.cxx
+++ b/desktop/source/deployment/manager/dp_extensionmanager.cxx
@@ -1181,7 +1181,7 @@ uno::Sequence< uno::Sequence<Reference<deploy::XPackage> > >
citVecVec = vecExtensions.begin();
sal_Int32 j = 0;
uno::Sequence< uno::Sequence<Reference<deploy::XPackage> > > seqSeq(vecExtensions.size());
- for (;citVecVec != vecExtensions.end(); citVecVec++, j++)
+ for (;citVecVec != vecExtensions.end(); ++citVecVec, j++)
{
seqSeq[j] = comphelper::containerToSequence(*citVecVec);
}
diff --git a/desktop/source/deployment/manager/dp_properties.cxx b/desktop/source/deployment/manager/dp_properties.cxx
index ec8120ff5574..160e8a5dd14f 100644
--- a/desktop/source/deployment/manager/dp_properties.cxx
+++ b/desktop/source/deployment/manager/dp_properties.cxx
@@ -69,7 +69,7 @@ ExtensionProperties::ExtensionProperties(
dp_misc::readProperties(props, contentProps);
typedef ::std::list< ::std::pair< OUString, OUString> >::const_iterator CI;
- for (CI i = props.begin(); i != props.end(); i++)
+ for (CI i = props.begin(); i != props.end(); ++i)
{
if (i->first.equals(OUSTR(PROP_SUPPRESS_LICENSE)))
m_prop_suppress_license = i->second;
diff --git a/desktop/source/deployment/registry/dp_backenddb.cxx b/desktop/source/deployment/registry/dp_backenddb.cxx
index a219f1308c00..1d0686014c8c 100644
--- a/desktop/source/deployment/registry/dp_backenddb.cxx
+++ b/desktop/source/deployment/registry/dp_backenddb.cxx
@@ -311,7 +311,7 @@ void BackendDb::writeVectorOfPair(
Reference<css::xml::dom::XNode>(
vectorNode, css::uno::UNO_QUERY_THROW));
typedef ::std::vector< ::std::pair< OUString, OUString > >::const_iterator CIT;
- for (CIT i = vecPairs.begin(); i != vecPairs.end(); i++)
+ for (CIT i = vecPairs.begin(); i != vecPairs.end(); ++i)
{
const Reference<css::xml::dom::XElement> pairNode(
doc->createElementNS(sNameSpace, sPrefix + sPairTagName));
diff --git a/desktop/source/deployment/registry/package/dp_package.cxx b/desktop/source/deployment/registry/package/dp_package.cxx
index 997fef46d2ad..23f583e16823 100644
--- a/desktop/source/deployment/registry/package/dp_package.cxx
+++ b/desktop/source/deployment/registry/package/dp_package.cxx
@@ -367,7 +367,7 @@ void BackendImpl::packageRemoved(OUString const & url, OUString const & /*mediaT
//Notify the backend responsible for processing the different media
//types that this extension was removed.
ExtensionBackendDb::Data data = readDataFromDb(url);
- for (ExtensionBackendDb::Data::ITC_ITEMS i = data.items.begin(); i != data.items.end(); i++)
+ for (ExtensionBackendDb::Data::ITC_ITEMS i = data.items.begin(); i != data.items.end(); ++i)
{
m_xRootRegistry->packageRemoved(i->first, i->second);
}
@@ -1649,7 +1649,7 @@ BackendImpl::PackageImpl::getPackagesFromDb(
::std::vector<Reference<deployment::XPackage> > retVector;
typedef ::std::vector< ::std::pair<OUString, OUString> >::const_iterator ITC;
- for (ITC i = m_dbData.items.begin(); i != m_dbData.items.end(); i++)
+ for (ITC i = m_dbData.items.begin(); i != m_dbData.items.end(); ++i)
{
Reference<deployment::XPackage> xExtension =
bindBundleItem(i->first, i->second, true, m_identifier, xCmdEnv);
diff --git a/framework/source/uielement/toolbarsmenucontroller.cxx b/framework/source/uielement/toolbarsmenucontroller.cxx
index 23012014d4c7..1bffc3966f17 100644
--- a/framework/source/uielement/toolbarsmenucontroller.cxx
+++ b/framework/source/uielement/toolbarsmenucontroller.cxx
@@ -451,7 +451,7 @@ void ToolbarsMenuController::fillPopupMenu( Reference< css::awt::XPopupMenu >& r
aTbEntry.pCollatorWrapper = m_aIntlWrapper.getCaseCollator();
aSortedTbs.push_back( aTbEntry );
}
- pIter++;
+ ++pIter;
}
// sort toolbars
diff --git a/jvmfwk/source/elements.cxx b/jvmfwk/source/elements.cxx
index e6273e0ce597..04d485d6fb75 100644
--- a/jvmfwk/source/elements.cxx
+++ b/jvmfwk/source/elements.cxx
@@ -1217,7 +1217,7 @@ const rtl::OUString& MergedSettings::getUserClassPath() const
{
::std::vector< ::rtl::OString> ret;
typedef ::std::vector< ::rtl::OUString>::const_iterator cit;
- for (cit i = m_vmParams.begin(); i < m_vmParams.end(); i++)
+ for (cit i = m_vmParams.begin(); i != m_vmParams.end(); ++i)
{
ret.push_back( ::rtl::OUStringToOString(*i, RTL_TEXTENCODING_UTF8));
}
diff --git a/package/source/xstor/ohierarchyholder.cxx b/package/source/xstor/ohierarchyholder.cxx
index c910e516de4c..df8936ca858b 100644
--- a/package/source/xstor/ohierarchyholder.cxx
+++ b/package/source/xstor/ohierarchyholder.cxx
@@ -310,7 +310,7 @@ void OHierarchyElement_Impl::RemoveElement( const ::rtl::Reference< OHierarchyEl
aIter != m_aChildren.end(); /* increment is done in body */)
{
OHierarchyElementList_Impl::iterator aTmpIter = aIter;
- aIter++;
+ ++aIter;
if ( aTmpIter->second == aRef )
m_aChildren.erase( aTmpIter );