[Libreoffice-commits] .: writerfilter/source
Caolán McNamara
caolan at kemper.freedesktop.org
Tue Apr 19 02:47:28 PDT 2011
writerfilter/source/dmapper/WrapPolygonHandler.cxx | 6 +++---
writerfilter/source/resourcemodel/XPathLogger.cxx | 3 +--
2 files changed, 4 insertions(+), 5 deletions(-)
New commits:
commit 0611e3d8f930e16e5d60b0fda586756934da695f
Author: Kayo Hamid <kayo.hamid at gekkolinux.com.br>
Date: Tue Apr 19 10:32:06 2011 +0100
prefer prefix ++/-- operators
diff --git a/writerfilter/source/dmapper/WrapPolygonHandler.cxx b/writerfilter/source/dmapper/WrapPolygonHandler.cxx
index b304796..cbe26e8 100644
--- a/writerfilter/source/dmapper/WrapPolygonHandler.cxx
+++ b/writerfilter/source/dmapper/WrapPolygonHandler.cxx
@@ -89,7 +89,7 @@ WrapPolygon::Pointer_t WrapPolygon::move(const awt::Point & rPoint)
{
awt::Point aPoint(aIt->X + rPoint.X, aIt->Y + rPoint.Y);
pResult->addPoint(aPoint);
- aIt++;
+ ++aIt;
}
return pResult;
@@ -106,7 +106,7 @@ WrapPolygon::Pointer_t WrapPolygon::scale(const Fraction & rFractionX, const Fra
{
awt::Point aPoint(Fraction(aIt->X) * rFractionX, Fraction(aIt->Y) * rFractionY);
pResult->addPoint(aPoint);
- aIt++;
+ ++aIt;
}
return pResult;
@@ -148,7 +148,7 @@ drawing::PointSequenceSequence WrapPolygon::getPointSequenceSequence() const
{
(*pPolygon)[n] = *aIt;
++n;
- aIt++;
+ ++aIt;
}
return aPolyPolygon;
diff --git a/writerfilter/source/resourcemodel/XPathLogger.cxx b/writerfilter/source/resourcemodel/XPathLogger.cxx
index fe7e1f7..a0f81ec 100644
--- a/writerfilter/source/resourcemodel/XPathLogger.cxx
+++ b/writerfilter/source/resourcemodel/XPathLogger.cxx
@@ -50,8 +50,7 @@ void XPathLogger::updateCurrentPath()
m_currentPath = "";
for (vector<string>::const_iterator aIt = m_path.begin();
- aIt != m_path.end();
- aIt++)
+ aIt != m_path.end(); ++aIt)
{
if (m_currentPath.size() > 0)
m_currentPath += "/";
More information about the Libreoffice-commits
mailing list