astyle fixes - spaces/{

This commit is contained in:
Kurt Hindenburg
2012-09-02 17:28:43 -04:00
parent ad50620f09
commit 69dcbd3406
11 changed files with 30 additions and 39 deletions

View File

@@ -117,7 +117,7 @@ bool ShellCommand::expandEnv(QString& text)
// find and expand all environment variables beginning with '$'
while ((dollarPos = text.indexOf(dollarChar, dollarPos)) != -1) {
// if '$' is the last character, there is no way of expanding
if (dollarPos == text.length() -1 ) {
if (dollarPos == text.length() - 1) {
break;
}
@@ -134,7 +134,7 @@ bool ShellCommand::expandEnv(QString& text)
}
int endPos = dollarPos + 1;
Q_ASSERT( endPos < text.length());
Q_ASSERT(endPos < text.length());
while (endPos < text.length() && isValidEnvCharacter(text.at(endPos))) {
endPos++;
}