summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2012-03-11 10:01:26 +0100
committerJulien Nabet <serval2412@yahoo.fr>2012-03-11 10:02:59 +0100
commitf96ac4aa501fb50150af9c9164f3bc1657f9c896 (patch)
treed091d1ffb0512006fa9963aeb5ae13e9fea049b6
parent820c23d3973f222ea31f19d4ba026f167a2167c3 (diff)
Some cppcheck cleaning
-rw-r--r--sw/source/filter/ww8/WW8FFData.cxx2
-rw-r--r--sw/source/filter/ww8/wrtw8nds.cxx4
-rw-r--r--sw/source/filter/xml/XMLRedlineImportHelper.cxx2
-rw-r--r--sw/source/filter/xml/xmltexti.cxx2
-rw-r--r--sw/source/ui/dochdl/swdtflvr.cxx2
5 files changed, 6 insertions, 6 deletions
diff --git a/sw/source/filter/ww8/WW8FFData.cxx b/sw/source/filter/ww8/WW8FFData.cxx
index f6e665fa6345..7f347d8f9b44 100644
--- a/sw/source/filter/ww8/WW8FFData.cxx
+++ b/sw/source/filter/ww8/WW8FFData.cxx
@@ -163,7 +163,7 @@ void WW8FFData::Write(SvStream * pDataStrm)
const ::rtl::OUString & rEntry = *aIt;
WriteOUString(pDataStrm, rEntry, false);
- aIt++;
+ ++aIt;
}
}
diff --git a/sw/source/filter/ww8/wrtw8nds.cxx b/sw/source/filter/ww8/wrtw8nds.cxx
index 53f95ad594b6..1c7e87bc0f0f 100644
--- a/sw/source/filter/ww8/wrtw8nds.cxx
+++ b/sw/source/filter/ww8/wrtw8nds.cxx
@@ -1676,7 +1676,7 @@ bool MSWordExportBase::NearestBookmark( xub_StrLen& rNearest, const xub_StrLen n
{
bool bHasBookmark = false;
- if ( m_rSortedMarksStart.size( ) > 0 )
+ if ( !m_rSortedMarksStart.empty() )
{
IMark* pMarkStart = m_rSortedMarksStart.front();
xub_StrLen nNext = pMarkStart->GetMarkStart().nContent.GetIndex();
@@ -1687,7 +1687,7 @@ bool MSWordExportBase::NearestBookmark( xub_StrLen& rNearest, const xub_StrLen n
}
}
- if ( m_rSortedMarksEnd.size( ) > 0 )
+ if ( !m_rSortedMarksEnd.empty() )
{
IMark* pMarkEnd = m_rSortedMarksEnd[0];
xub_StrLen nNext = pMarkEnd->GetMarkEnd().nContent.GetIndex();
diff --git a/sw/source/filter/xml/XMLRedlineImportHelper.cxx b/sw/source/filter/xml/XMLRedlineImportHelper.cxx
index 49a3110ce462..b91a81b75d87 100644
--- a/sw/source/filter/xml/XMLRedlineImportHelper.cxx
+++ b/sw/source/filter/xml/XMLRedlineImportHelper.cxx
@@ -330,7 +330,7 @@ XMLRedlineImportHelper::~XMLRedlineImportHelper()
{
// delete all left over (and obviously incomplete) RedlineInfos (and map)
RedlineMapType::iterator aFind = aRedlineMap.begin();
- for( ; aRedlineMap.end() != aFind; aFind++ )
+ for( ; aRedlineMap.end() != aFind; ++aFind )
{
RedlineInfo* pInfo = aFind->second;
diff --git a/sw/source/filter/xml/xmltexti.cxx b/sw/source/filter/xml/xmltexti.cxx
index 4b77b18c4887..d690dee87125 100644
--- a/sw/source/filter/xml/xmltexti.cxx
+++ b/sw/source/filter/xml/xmltexti.cxx
@@ -946,7 +946,7 @@ void SwXMLTextImportHelper::endAppletOrPlugin(
aCommandSequence[nIndex].Handle = -1;
aCommandSequence[nIndex].Value = makeAny( OUString((*aIter).second) );
aCommandSequence[nIndex].State = beans::PropertyState_DIRECT_VALUE;
- aIter++, nIndex++;
+ ++aIter, ++nIndex;
}
// unfortunately the names of the properties are depending on the object
diff --git a/sw/source/ui/dochdl/swdtflvr.cxx b/sw/source/ui/dochdl/swdtflvr.cxx
index adfa4d1f098e..2760a7d08bfe 100644
--- a/sw/source/ui/dochdl/swdtflvr.cxx
+++ b/sw/source/ui/dochdl/swdtflvr.cxx
@@ -854,7 +854,7 @@ int SwTransferable::PrepareForCopy( sal_Bool bIsCut )
// remove all DDE-Bookmarks, they are invalid inside the clipdoc!
for(::std::vector< ::sw::mark::IMark* >::iterator ppMark = vDdeMarks.begin();
ppMark != vDdeMarks.end();
- ppMark++)
+ ++ppMark)
pMarkAccess->deleteMark(*ppMark);
}