forked from qt-creator/qt-creator
CppTools: accessSpecToString returns the plain name of AccessSpec
Change-Id: I840160a8f5b1c86d621f3334556a74ccb7176ba8 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
This commit is contained in:
@@ -735,7 +735,7 @@ public:
|
||||
const QString accessSpecString =
|
||||
InsertionPointLocator::accessSpecToString(funcItem->accessSpec);
|
||||
if (accessSpecString != lastAccessSpecString) {
|
||||
declaration = accessSpecString + declaration;
|
||||
declaration = accessSpecString + QLatin1String(":\n") + declaration;
|
||||
if (!lastAccessSpecString.isEmpty()) // separate if not direct after the comment
|
||||
declaration = QLatin1String("\n") + declaration;
|
||||
lastAccessSpecString = accessSpecString;
|
||||
|
||||
Reference in New Issue
Block a user