diff options
author | Orgad Shaneh <orgad.shaneh@audiocodes.com> | 2012-11-28 20:44:03 +0200 |
---|---|---|
committer | Orgad Shaneh <orgads@gmail.com> | 2012-11-28 20:20:46 +0100 |
commit | a44aa55502b1d9f548692e49ab7cea13d341c8ca (patch) | |
tree | 77f9fbfd583551839c4448c1b66de7c47dd7afc3 /src/libs/utils/uncommentselection.cpp | |
parent | 3747e941ad79f64e28c78c83a840783eb3edfd6f (diff) | |
download | qt-creator-a44aa55502b1d9f548692e49ab7cea13d341c8ca.tar.gz |
Add whitespace after control keywords
find -name \*.cpp -o -name \*.h | \
xargs sed -Ei 's/ (for|foreach|if|switch|while)\(/ \1 (/g'
Change-Id: I9efdff4bf0c8c01a52baaaeb75198483c77b0390
Reviewed-by: hjk <qthjk@ovi.com>
Diffstat (limited to 'src/libs/utils/uncommentselection.cpp')
-rw-r--r-- | src/libs/utils/uncommentselection.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libs/utils/uncommentselection.cpp b/src/libs/utils/uncommentselection.cpp index 269978acda..864199dbd9 100644 --- a/src/libs/utils/uncommentselection.cpp +++ b/src/libs/utils/uncommentselection.cpp @@ -258,7 +258,7 @@ void Utils::unCommentSelection(QPlainTextEdit *edit, const CommentDefinition &de } } else { QString text = block.text(); - foreach(QChar c, text) { + foreach (QChar c, text) { if (!c.isSpace()) { if (definition.isAfterWhiteSpaces()) cursor.setPosition(block.position() + text.indexOf(c)); |