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

@@ -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 '$'
//