mirror of
https://github.com/KDE/konsole.git
synced 2026-05-04 20:55:56 -04:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user