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

List:       kde-commits
Subject:    koffice/filters/kchart
From:       Ariya Hidayat <ariya () kde ! org>
Date:       2006-12-01 15:57:08
Message-ID: 1164988628.528508.23947.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 609675 by ariya:

pass as const reference


 M  +1 -1      bmp/bmpexport.cpp  
 M  +1 -1      bmp/bmpexport.h  
 M  +1 -1      jpeg/jpegexport.cpp  
 M  +1 -1      jpeg/jpegexport.h  
 M  +1 -1      libimageexport/imageexport.h  
 M  +1 -1      mng/mngexport.cpp  
 M  +1 -1      mng/mngexport.h  
 M  +1 -1      png/pngexport.cpp  
 M  +1 -1      png/pngexport.h  
 M  +1 -1      xbm/xbmexport.cpp  
 M  +1 -1      xbm/xbmexport.h  
 M  +1 -1      xpm/xpmexport.cpp  
 M  +1 -1      xpm/xpmexport.h  


--- trunk/koffice/filters/kchart/bmp/bmpexport.cpp #609674:609675
@@ -56,7 +56,7 @@
 }
 
 
-bool BmpExport::saveImage( QString fileName)
+bool BmpExport::saveImage( const QString& fileName)
 {
     bool ret = pixmap.save( fileName, "BMP" );
     // Save the image.
--- trunk/koffice/filters/kchart/bmp/bmpexport.h #609674:609675
@@ -29,7 +29,7 @@
 public:
     BmpExport(QObject* parent, const QStringList&);
     virtual ~BmpExport();
-    virtual bool saveImage( QString fileName);
+    virtual bool saveImage( const QString& fileName);
     virtual void extraImageAttribute();
     virtual const char * exportFormat();
 };
--- trunk/koffice/filters/kchart/jpeg/jpegexport.cpp #609674:609675
@@ -56,7 +56,7 @@
 }
 
 
-bool JpegExport::saveImage( QString fileName)
+bool JpegExport::saveImage( const QString& fileName)
 {
     bool ret = pixmap.save( fileName, "JPEG" );
     // Save the image.
--- trunk/koffice/filters/kchart/jpeg/jpegexport.h #609674:609675
@@ -29,7 +29,7 @@
 public:
     JpegExport(QObject* parent, const QStringList&);
     virtual ~JpegExport();
-    virtual bool saveImage( QString fileName);
+    virtual bool saveImage( const QString& fileName);
     virtual void extraImageAttribute();
     virtual const char * exportFormat();
 };
--- trunk/koffice/filters/kchart/libimageexport/imageexport.h #609674:609675
@@ -47,7 +47,7 @@
 
     virtual KoFilter::ConversionStatus convert(const QByteArray& from, const QByteArray& to);
     virtual void extraImageAttribute() {};
-    virtual bool saveImage( QString fileName) = 0;
+    virtual bool saveImage( const QString& fileName) = 0;
     virtual const char* exportFormat() = 0;
 protected:
     int width;
--- trunk/koffice/filters/kchart/mng/mngexport.cpp #609674:609675
@@ -56,7 +56,7 @@
 }
 
 
-bool MngExport::saveImage( QString fileName)
+bool MngExport::saveImage( const QString& fileName)
 {
     bool ret = pixmap.save( fileName, "MNG" );
     // Save the image.
--- trunk/koffice/filters/kchart/mng/mngexport.h #609674:609675
@@ -29,7 +29,7 @@
 public:
     MngExport(QObject* parent, const QStringList&);
     virtual ~MngExport();
-    virtual bool saveImage( QString fileName);
+    virtual bool saveImage( const QString& fileName);
     virtual void extraImageAttribute();
     virtual const char * exportFormat();
 };
--- trunk/koffice/filters/kchart/png/pngexport.cpp #609674:609675
@@ -60,7 +60,7 @@
 	return "image/png";
 }
 
-bool PngExport::saveImage( QString fileName)
+bool PngExport::saveImage( const QString& fileName)
 {
     bool ret = pixmap.save( fileName, "PNG" );
     // Save the image.
--- trunk/koffice/filters/kchart/png/pngexport.h #609674:609675
@@ -29,7 +29,7 @@
 public:
     PngExport(QObject* parent, const QStringList&);
     virtual ~PngExport();
-    virtual bool saveImage( QString fileName);
+    virtual bool saveImage( const QString& fileName);
     virtual void extraImageAttribute();
     virtual const char * exportFormat();
 };
--- trunk/koffice/filters/kchart/xbm/xbmexport.cpp #609674:609675
@@ -56,7 +56,7 @@
 }
 
 
-bool XbmExport::saveImage( QString fileName)
+bool XbmExport::saveImage( const QString& fileName)
 {
     bool ret = pixmap.save( fileName, "XBM" );
     // Save the image.
--- trunk/koffice/filters/kchart/xbm/xbmexport.h #609674:609675
@@ -29,7 +29,7 @@
 public:
     XbmExport(QObject* parent, const QStringList&);
     virtual ~XbmExport();
-    virtual bool saveImage( QString fileName);
+    virtual bool saveImage( const QString& fileName);
     virtual void extraImageAttribute();
     virtual const char * exportFormat();
 };
--- trunk/koffice/filters/kchart/xpm/xpmexport.cpp #609674:609675
@@ -56,7 +56,7 @@
 }
 
 
-bool XpmExport::saveImage( QString fileName)
+bool XpmExport::saveImage( const QString& fileName)
 {
     bool ret = pixmap.save( fileName, "XPM" );
     // Save the image.
--- trunk/koffice/filters/kchart/xpm/xpmexport.h #609674:609675
@@ -29,7 +29,7 @@
 public:
     XpmExport(QObject* parent, const QStringList&);
     virtual ~XpmExport();
-    virtual bool saveImage( QString fileName);
+    virtual bool saveImage( const QString& fileName);
     virtual void extraImageAttribute();
     virtual const char * exportFormat();
 };
[prev in list] [next in list] [prev in thread] [next in thread] 

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