Kaydet (Commit) f96ac4aa authored tarafından Julien Nabet's avatar Julien Nabet

Some cppcheck cleaning

üst 820c23d3
......@@ -163,7 +163,7 @@ void WW8FFData::Write(SvStream * pDataStrm)
const ::rtl::OUString & rEntry = *aIt;
WriteOUString(pDataStrm, rEntry, false);
aIt++;
++aIt;
}
}
......
......@@ -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();
......
......@@ -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;
......
......@@ -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
......
......@@ -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);
}
......
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