From 021dbc2e96f7ad18c8ec4ae76f753e6223ff871f Mon Sep 17 00:00:00 2001 From: Nikolai Kosjar Date: Mon, 17 Jun 2013 16:09:47 +0200 Subject: CppEditor: Respect whitespace in operator names for more quick fixes * Affected quick fixes: InsertDefFromDecl, MoveFuncDefOutside * Fix also reformating pointer declaration of operator functions for qualified name ids Change-Id: I6a7578f496221557d103f5fdbb5dacc9540ee779 Reviewed-by: Erik Verbruggen --- src/plugins/cpptools/cpppointerdeclarationformatter.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/plugins/cpptools/cpppointerdeclarationformatter.h') diff --git a/src/plugins/cpptools/cpppointerdeclarationformatter.h b/src/plugins/cpptools/cpppointerdeclarationformatter.h index 0419f8257e..621c6d3971 100644 --- a/src/plugins/cpptools/cpppointerdeclarationformatter.h +++ b/src/plugins/cpptools/cpppointerdeclarationformatter.h @@ -78,7 +78,7 @@ public: enum CursorHandling { RespectCursor, IgnoreCursor }; explicit PointerDeclarationFormatter(const CppRefactoringFilePtr refactoringFile, - const Overview &overview, + Overview &overview, CursorHandling cursorHandling = IgnoreCursor); /*! @@ -113,11 +113,10 @@ private: void processIfWhileForStatement(ExpressionAST *expression, Symbol *symbol); void checkAndRewrite(DeclaratorAST *declarator, Symbol *symbol, TokenRange range, unsigned charactersToRemove = 0); - QString rewriteDeclaration(FullySpecifiedType type, const Name *name) const; void printCandidate(AST *ast); const CppRefactoringFilePtr m_cppRefactoringFile; - const Overview &m_overview; + Overview &m_overview; const CursorHandling m_cursorHandling; ChangeSet m_changeSet; -- cgit v1.2.1