mirror of
https://github.com/KDE/konsole.git
synced 2026-06-10 06:55:13 -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:
@@ -81,7 +81,7 @@ QStringList ShellCommand::expand(const QStringList& items)
|
||||
{
|
||||
QStringList result;
|
||||
|
||||
foreach( const QString &item , items )
|
||||
foreach( const QString& item , items )
|
||||
result << expand(item);
|
||||
|
||||
return result;
|
||||
@@ -99,7 +99,7 @@ QString ShellCommand::expand(const QString& text)
|
||||
* Expand environment variables in text. Escaped '$' characters are ignored.
|
||||
* Return true if any variables were expanded
|
||||
*/
|
||||
static bool expandEnv( QString &text )
|
||||
static bool expandEnv( QString& text )
|
||||
{
|
||||
// Find all environment variables beginning with '$'
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user