blob: b03309b8c83df7e07e657bc2312c58d15c20c5a1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
diff --git a/src/plugins/cppeditor/doxygengenerator.cpp b/src/plugins/cppeditor/doxygengenerator.cpp
index c77f3de7..04df411d 100644
--- a/src/plugins/cppeditor/doxygengenerator.cpp
+++ b/src/plugins/cppeditor/doxygengenerator.cpp
@@ -116,8 +116,10 @@ QString DoxygenGenerator::generate(QTextCursor cursor, DeclarationAST *decl)
assignCommentOffset(cursor);
QString comment;
- writeNewLine(&comment);
- writeContinuation(&comment);
+ if (m_style != CppStyleA) {
+ writeNewLine(&comment);
+ writeContinuation(&comment);
+ }
if (decltr
&& decltr->core_declarator
@@ -226,7 +228,7 @@ QString DoxygenGenerator::commandSpelling(Command command)
void DoxygenGenerator::writeEnd(QString *comment) const
{
if (m_style == CppStyleA)
- comment->append(QLatin1String("///"));
+ comment->chop(1);
else if (m_style == CppStyleB)
comment->append(QLatin1String("//!"));
else
|