[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    koffice/filters/karbon
From:       Jan Hambrecht <jaham () gmx ! net>
Date:       2008-10-24 19:18:03
Message-ID: 1224875883.571696.28757.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 875542 by jaham:

fix some krazy issues and warnings



 M  +4 -4      svg/svgexport.cc  
 M  +1 -1      svg/svgexport.h  
 M  +1 -1      wmf/wmfexport.cc  
 M  +1 -1      wmf/wmfimportparser.cc  


--- trunk/koffice/filters/karbon/svg/svgexport.cc #875541:875542
@@ -354,7 +354,7 @@
 void SvgExport::getColorStops( const QGradientStops & colorStops )
 {
     m_indent2++;
-    foreach( QGradientStop stop, colorStops )
+    foreach( const QGradientStop &stop, colorStops )
     {
         printIndentation( m_defs, m_indent2 );
         *m_defs << "<stop stop-color=\"";
@@ -365,7 +365,7 @@
     m_indent2--;
 }
 
-void SvgExport::getGradient( KoShape * shape, const QBrush &brush )
+void SvgExport::getGradient( const QBrush &brush )
 {
     const QString spreadMethod[3] = {
         QString("spreadMethod=\"pad\" "),
@@ -507,7 +507,7 @@
         case Qt::LinearGradientPattern:
         case Qt::RadialGradientPattern:
         case Qt::ConicalGradientPattern:
-            getGradient( shape, fill );
+            getGradient( fill );
             break;
         case Qt::TexturePattern:
             getPattern( fill.texture() );
@@ -543,7 +543,7 @@
     if( line->lineStyle() == Qt::NoPen )
         *stream << "none";
     else if( line->lineBrush().gradient() )
-        getGradient( shape, line->lineBrush() );
+        getGradient( line->lineBrush() );
     else
         getHexColor( stream, line->color() );
     *stream << "\"";
--- trunk/koffice/filters/karbon/svg/svgexport.h #875541:875542
@@ -74,7 +74,7 @@
     void getFill( KoShape * shape, QTextStream *stream );
     void getStroke( KoShape * shape, QTextStream *stream );
     void getColorStops( const QGradientStops & colorStops );
-    void getGradient( KoShape * shape, const QBrush & brush );
+    void getGradient( const QBrush & brush );
     void getPattern( const QPixmap& patt );
     void getHexColor( QTextStream *, const QColor & color  );
     QString getTransform( const QMatrix &matrix, const QString &attributeName );
--- trunk/koffice/filters/karbon/wmf/wmfexport.cc #875541:875542
@@ -116,7 +116,7 @@
         return;
 
     QList<QPolygon> polygons;
-    foreach( QPolygonF subpath, subpaths )
+    foreach( const QPolygonF & subpath, subpaths )
     {
         QPolygon p;
         uint pointCount = subpath.count();
--- trunk/koffice/filters/karbon/wmf/wmfimportparser.cc #875541:875542
@@ -374,7 +374,7 @@
         appendPoints( *path, listPa.first() );
         path->close();
         path->setFillRule( winding ? Qt::WindingFill : Qt::OddEvenFill );
-        foreach( QPolygon pa, listPa )
+        foreach( const QPolygon & pa, listPa )
         {
             KoPathShape *newPath = static_cast<KoPathShape*>( createShape( KoPathShapeId ) );
             if( ! newPath )
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic