[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdeadmin/ksysv
From: Benjamin Meyer <benjamin () csh ! rit ! edu>
Date: 2004-10-25 14:58:35
Message-ID: 20041025145835.A1ED216BE9 () office ! kde ! org
[Download RAW message or body]
CVS commit by bmeyer:
pass QString as const when possible
M +2 -2 ksv_service.cpp 1.5
M +2 -2 ksv_service.h 1.3
--- kdeadmin/ksysv/ksv_service.cpp #1.4:1.5
@@ -18,5 +18,5 @@
#include "leveldb.h"
-KSVService::KSVService (QString name, QString basedir)
+KSVService::KSVService (const QString &name, const QString &basedir)
: name_ (name),
base_ (basedir)
@@ -25,5 +25,5 @@ KSVService::KSVService (QString name, QS
}
-KSVService* KSVService::newService (QString name, QString basedir)
+KSVService* KSVService::newService (const QString &name, const QString &basedir)
{
struct service service;
--- kdeadmin/ksysv/ksv_service.h #1.2:1.3
@@ -34,5 +34,5 @@ public:
* Named constructor
*/
- static KSVService* newService (QString name, QString basedir);
+ static KSVService* newService (const QString &name, const QString &basedir);
/**
@@ -79,5 +79,5 @@ protected:
* Constructor
*/
- KSVService (QString name, QString basedir);
+ KSVService (const QString &name, const QString &basedir);
/**
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic