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

List:       kde-commits
Subject:    koffice/tools/kfile-plugins/koffice
From:       Laurent Montel <montel () kde ! org>
Date:       2005-05-15 9:55:28
Message-ID: 1116150928.799432.9112.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 414089 by mlaurent:

Add const


 M  +1 -1      trunk/koffice/tools/kfile-plugins/koffice/kfile_koffice.cpp  
 M  +3 -3      trunk/koffice/tools/kfile-plugins/koffice/kfile_koffice.h  


--- trunk/koffice/tools/kfile-plugins/koffice/kfile_koffice.cpp #414088:414089
@@ -105,7 +105,7 @@
     return false;
 }
 
-QString KOfficePlugin::stringFromNode(QDomNode node, QString name)
+QString KOfficePlugin::stringFromNode(const QDomNode &node, const QString &name)
 {
     QString value = node.namedItem(name).toElement().text();
     return value.isEmpty() ? i18n("*Unknown*") : value;
--- trunk/koffice/tools/kfile-plugins/koffice/kfile_koffice.h #414088:414089
@@ -28,15 +28,15 @@
 class KOfficePlugin: public KFilePlugin
 {
     Q_OBJECT
-    
+
 public:
     KOfficePlugin( QObject *parent, const char *name, const QStringList& args );
-    
+
     virtual bool readInfo( KFileMetaInfo& info, uint what);
 
 private:
     void makeMimeTypeInfo(const QString& mimeType);
-    QString stringFromNode(QDomNode node, QString name);
+    QString stringFromNode(const QDomNode &node, const QString &name);
 };
 
 #endif
[prev in list] [next in list] [prev in thread] [next in thread] 

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