aboutsummaryrefslogtreecommitdiffstats
path: root/tools/qmlformat/dumpastvisitor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/qmlformat/dumpastvisitor.cpp')
-rw-r--r--tools/qmlformat/dumpastvisitor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/qmlformat/dumpastvisitor.cpp b/tools/qmlformat/dumpastvisitor.cpp
index 771814ffd5..723be4e445 100644
--- a/tools/qmlformat/dumpastvisitor.cpp
+++ b/tools/qmlformat/dumpastvisitor.cpp
@@ -129,7 +129,7 @@ QString DumpAstVisitor::formatComment(const Comment &comment) const
if (useMultilineComment)
result += "/*";
- else
+ else if (!comment.hasSheBang())
result += "//";
result += comment.m_text;