[Libreoffice-commits] .: 2 commits - sax/test vcl/source

Caolán McNamara caolan at kemper.freedesktop.org
Fri Jan 7 03:10:24 PST 2011


 sax/test/saxdemo.cxx                  |    4 ++--
 vcl/source/glyphs/graphite_layout.cxx |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

New commits:
commit a8e327d33041eb3cc1dd6409c93c349454c66187
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Fri Jan 7 10:57:01 2011 +0000

    cppcheck: prefer prefix variant

diff --git a/sax/test/saxdemo.cxx b/sax/test/saxdemo.cxx
index acf78e4..1905a16 100644
--- a/sax/test/saxdemo.cxx
+++ b/sax/test/saxdemo.cxx
@@ -357,7 +357,7 @@ OUString AttributeListImpl::getTypeByName( const OUString& sName ) throw  (Runti
 {
     vector<struct TagAttribute>::iterator ii = m_pImpl->vecAttribute.begin();
 
-    for( ; ii != m_pImpl->vecAttribute.end() ; ii ++ ) {
+    for( ; ii != m_pImpl->vecAttribute.end() ; ++ii ) {
         if( (*ii).sName == sName ) {
             return (*ii).sType;
         }
@@ -369,7 +369,7 @@ OUString AttributeListImpl::getValueByName(const OUString& sName) throw  (Runtim
 {
     vector<struct TagAttribute>::iterator ii = m_pImpl->vecAttribute.begin();
 
-    for( ; ii != m_pImpl->vecAttribute.end() ; ii ++ ) {
+    for( ; ii != m_pImpl->vecAttribute.end() ; ++ii ) {
         if( (*ii).sName == sName ) {
             return (*ii).sValue;
         }
commit 8c500d58d71af6c18cd680630b333eada1125592
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Fri Jan 7 10:55:29 2011 +0000

    cppcheck: prefer prefix variant

diff --git a/vcl/source/glyphs/graphite_layout.cxx b/vcl/source/glyphs/graphite_layout.cxx
index 0a674a2..7428f1d 100644
--- a/vcl/source/glyphs/graphite_layout.cxx
+++ b/vcl/source/glyphs/graphite_layout.cxx
@@ -1263,7 +1263,7 @@ void GraphiteLayout::kashidaJustify(std::vector<int>& rDeltaWidths, sal_GlyphId
         {
             (*(i)).maLinearPos.X() -= nGapWidth;
             nGapWidth -= nKashidaWidth;
-            i++;
+            ++i;
         }
 
         // fixup rightmost kashida for gap remainder


More information about the Libreoffice-commits mailing list