Declare pointer and reference in a consistent way

Most code use the "const QString& text" form, instead of the "const
QString &text" form. So change the minority to be consistent with
the majority.
This commit is contained in:
Jekyll Wu
2011-11-06 06:13:28 +08:00
parent 1826cfcdc9
commit 125e2c7bd2
25 changed files with 79 additions and 79 deletions

View File

@@ -414,8 +414,8 @@ void UnixProcessInfo::readUserName()
if (!ok) return;
struct passwd passwdStruct;
struct passwd *getpwResult;
char *getpwBuffer;
struct passwd* getpwResult;
char* getpwBuffer;
long getpwBufferSize;
int getpwStatus;
@@ -584,7 +584,7 @@ private:
QStringList argList = data.split( QChar('\0') );
foreach ( const QString &entry , argList )
foreach ( const QString& entry , argList )
{
if (!entry.isEmpty())
addArgument(entry);
@@ -634,7 +634,7 @@ private:
QStringList bindingList = data.split( QChar('\0') );
foreach( const QString &entry , bindingList )
foreach( const QString& entry , bindingList )
{
QString name;
QString value;