forked from qt-creator/qt-creator
Remove the inline keyword when moving implementation to cpp
Since the implementation has been moved to the cpp file, then the inline keyword has to be removed otherwise it will cause a build error. Change-Id: I145bbaeb02674bd68501f1a41787bd4aa2a75f53 Fixes: QTCREATORBUG-20703 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -6262,6 +6262,10 @@ public:
|
||||
} else {
|
||||
QString textFuncDecl = m_fromFile->textOf(funcAST);
|
||||
textFuncDecl.truncate(startPosition - m_fromFile->startOf(funcAST));
|
||||
if (textFuncDecl.left(7) == QLatin1String("inline "))
|
||||
textFuncDecl = textFuncDecl.mid(7);
|
||||
else
|
||||
textFuncDecl.replace(" inline ", QLatin1String(" "));
|
||||
textFuncDecl = textFuncDecl.trimmed() + QLatin1Char(';');
|
||||
m_fromFileChangeSet.replace(m_fromFile->range(funcAST), textFuncDecl);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user