summaryrefslogtreecommitdiffstats
path: root/lib/astyle
diff options
context:
space:
mode:
Diffstat (limited to 'lib/astyle')
-rw-r--r--lib/astyle/ASFormatter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/astyle/ASFormatter.cpp b/lib/astyle/ASFormatter.cpp
index bf88affd..6e7a70f0 100644
--- a/lib/astyle/ASFormatter.cpp
+++ b/lib/astyle/ASFormatter.cpp
@@ -388,7 +388,7 @@ string ASFormatter::nextLine()
isAppendPostBlockEmptyLineRequested = false;
isInLineComment = true;
// do not indent if in column 1 or 2
- if (lineCommentNoIndent == false)
+ if (!lineCommentNoIndent)
{
if (charNum == 0)
lineCommentNoIndent = true;
@@ -396,7 +396,7 @@ string ASFormatter::nextLine()
lineCommentNoIndent = true;
}
// move comment if spaces were added or deleted
- if (lineCommentNoIndent == false && spacePadNum != 0)
+ if (!lineCommentNoIndent && spacePadNum != 0)
adjustComments();
formattedLineCommentNum = formattedLine.length();
appendSequence(AS_OPEN_LINE_COMMENT);