diff options
author | Roberto Raggi <roberto.raggi@nokia.com> | 2010-07-20 14:23:46 +0200 |
---|---|---|
committer | Roberto Raggi <roberto.raggi@nokia.com> | 2010-07-20 14:23:46 +0200 |
commit | c9bc1e7c64fb73e8148b65dfe7a4521121331efc (patch) | |
tree | 273d33a86c629d95024db201b450d05e22309945 /src/plugins/cppeditor/cppquickfix.cpp | |
parent | 99e862cfc9b39dc5bddd0efddf7d7c7a219b5107 (diff) |
Revert "Try to fix the type rewriter."
This reverts commit 33b19f0210cd6ab1504071912caee91a95515c7c.
Diffstat (limited to 'src/plugins/cppeditor/cppquickfix.cpp')
-rw-r--r-- | src/plugins/cppeditor/cppquickfix.cpp | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/src/plugins/cppeditor/cppquickfix.cpp b/src/plugins/cppeditor/cppquickfix.cpp index fdc9d676eb..eaa7600c16 100644 --- a/src/plugins/cppeditor/cppquickfix.cpp +++ b/src/plugins/cppeditor/cppquickfix.cpp @@ -37,7 +37,6 @@ #include <cplusplus/Overview.h> #include <cplusplus/TypeOfExpression.h> #include <cplusplus/DependencyTable.h> -#include <cplusplus/CppRewriter.h> #include <TranslationUnit.h> #include <ASTVisitor.h> @@ -1547,18 +1546,8 @@ public: TypeOfExpression::Preprocess); if (! result.isEmpty()) { - - SubstitutionEnvironment env; - env.setContext(context()); - env.switchScope(result.first().scope()); - UseQualifiedNames q; - env.enter(&q); - - Control *control = context().control().data(); - FullySpecifiedType tn = rewriteType(result.first().type(), &env, control); - Overview oo; - QString ty = oo(tn); + QString ty = oo(result.first().type()); if (! ty.isEmpty()) { const QChar ch = ty.at(ty.size() - 1); |