CppEditor: Fix operator refactoring

The refactoring option was not triggered if the operator definition had
a different amount of whitespace after "operator" than the declaration.

Fixes: QTCREATORBUG-6236
Change-Id: Idf6438203e28d3f1effe0a0375d6563f813a9726
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
This commit is contained in:
Christian Kandeler
2020-06-05 14:29:09 +02:00
parent 30610b7991
commit 758f79923f
2 changed files with 26 additions and 1 deletions

View File

@@ -104,6 +104,8 @@ public:
CPlusPlus::FunctionDeclaratorAST *targetFunctionDeclarator = nullptr;
private:
QString normalizedInitialName() const;
bool hasMarker = false;
friend class FunctionDeclDefLinkFinder;