Commit 3fba291b authored by hjk's avatar hjk

cppquickfixes: compile fix for msvc2008

Change-Id: I287c76372d2c50c408b9ef74e292a36d8e278449
Reviewed-by: default avatarhjk <qthjk@ovi.com>
parent 88814c64
......@@ -46,6 +46,7 @@ using namespace CPlusPlus;
using namespace CppEditor;
using namespace CppEditor::Internal;
using namespace CppTools;
using namespace TextEditor;
using namespace Utils;
namespace {
......
......@@ -41,7 +41,7 @@ namespace Internal {
class CompleteSwitchCaseStatement: public CppQuickFixFactory
{
public:
void match(const CppQuickFixInterface &interface, QuickFixOperations &result);
void match(const CppQuickFixInterface &interface, TextEditor::QuickFixOperations &result);
};
} // namespace Internal
......
......@@ -59,6 +59,7 @@ using namespace CPlusPlus;
using namespace CppEditor;
using namespace CppEditor::Internal;
using namespace CppTools;
using namespace TextEditor;
FunctionDeclDefLinkFinder::FunctionDeclDefLinkFinder(QObject *parent)
: QObject(parent)
......
......@@ -127,7 +127,7 @@ private:
class ApplyDeclDefLinkChanges: public CppQuickFixFactory
{
public:
void match(const CppQuickFixInterface &interface, QuickFixOperations &result);
void match(const CppQuickFixInterface &interface, TextEditor::QuickFixOperations &result);
};
} // namespace Internal
......
......@@ -55,6 +55,7 @@ using namespace CPlusPlus;
using namespace CppEditor;
using namespace CppEditor::Internal;
using namespace CppTools;
using namespace TextEditor;
namespace {
......
......@@ -38,18 +38,18 @@ namespace Internal {
class DeclFromDef: public CppQuickFixFactory
{
public:
void match(const CppQuickFixInterface &interface, QuickFixOperations &result);
void match(const CppQuickFixInterface &interface, TextEditor::QuickFixOperations &result);
};
class DefFromDecl: public CppQuickFixFactory
{
public:
void match(const CppQuickFixInterface &interface, QuickFixOperations &result);
void match(const CppQuickFixInterface &interface, TextEditor::QuickFixOperations &result);
};
class ExtractFunction : public CppQuickFixFactory
{
void match(const CppQuickFixInterface &interface, QuickFixOperations &result);
void match(const CppQuickFixInterface &interface, TextEditor::QuickFixOperations &result);
};
} // namespace Internal
......
......@@ -60,7 +60,7 @@ class InsertQtPropertyMembers : public CppQuickFixFactory
Q_OBJECT
public:
void match(const CppQuickFixInterface &interface, QuickFixOperations &result);
void match(const CppQuickFixInterface &interface, TextEditor::QuickFixOperations &result);
private:
enum GenerateFlag {
......
......@@ -42,8 +42,6 @@ namespace CppEditor {
namespace Internal { class CppQuickFixAssistInterface; }
typedef QSharedPointer<const Internal::CppQuickFixAssistInterface> CppQuickFixInterface;
typedef TextEditor::QuickFixInterface QuickFixInterface;
typedef TextEditor::QuickFixOperations QuickFixOperations;
class CPPEDITOR_EXPORT CppQuickFixOperation: public TextEditor::QuickFixOperation
{
......@@ -66,13 +64,15 @@ class CPPEDITOR_EXPORT CppQuickFixFactory: public TextEditor::QuickFixFactory
public:
CppQuickFixFactory() {}
void matchingOperations(const QuickFixInterface &interface, QuickFixOperations &result);
void matchingOperations(const TextEditor::QuickFixInterface &interface,
TextEditor::QuickFixOperations &result);
/*!
Implement this method to match and create the appropriate
CppQuickFixOperation objects.
*/
virtual void match(const CppQuickFixInterface &interface, QuickFixOperations &result) = 0;
virtual void match(const CppQuickFixInterface &interface,
TextEditor::QuickFixOperations &result) = 0;
};
} // namespace CppEditor
......
......@@ -76,8 +76,8 @@
using namespace CppEditor;
using namespace CppEditor::Internal;
using namespace CppTools;
using namespace TextEditor;
using namespace CPlusPlus;
using namespace TextEditor;
using namespace Utils;
static inline bool isQtStringLiteral(const QByteArray &id)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment