summaryrefslogtreecommitdiffstats
path: root/lib/astyle/ASFormatter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/astyle/ASFormatter.cpp')
-rw-r--r--lib/astyle/ASFormatter.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/astyle/ASFormatter.cpp b/lib/astyle/ASFormatter.cpp
index eb418760..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);
@@ -1652,7 +1652,7 @@ void ASFormatter::adjustComments(void)
if (formattedLine.find_last_not_of(' ') < len - adjust - 1
&& formattedLine[len-1] != '\t') // don't adjust a tab
formattedLine.resize(len - adjust);
- // the following are commented out to avoid a Borland compiler warning
+ // the following are commented out to avoid compiler warning
//else
// adjust = 0;
TRcomment(-adjust); // trace macro