cppquickfixes: compile fix for msvc2008

Change-Id: I287c76372d2c50c408b9ef74e292a36d8e278449
Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
hjk
2012-11-07 18:36:52 +01:00
parent 88814c64b5
commit 3fba291b7b
9 changed files with 14 additions and 11 deletions

View File

@@ -46,6 +46,7 @@ using namespace CPlusPlus;
using namespace CppEditor; using namespace CppEditor;
using namespace CppEditor::Internal; using namespace CppEditor::Internal;
using namespace CppTools; using namespace CppTools;
using namespace TextEditor;
using namespace Utils; using namespace Utils;
namespace { namespace {

View File

@@ -41,7 +41,7 @@ namespace Internal {
class CompleteSwitchCaseStatement: public CppQuickFixFactory class CompleteSwitchCaseStatement: public CppQuickFixFactory
{ {
public: public:
void match(const CppQuickFixInterface &interface, QuickFixOperations &result); void match(const CppQuickFixInterface &interface, TextEditor::QuickFixOperations &result);
}; };
} // namespace Internal } // namespace Internal

View File

@@ -59,6 +59,7 @@ using namespace CPlusPlus;
using namespace CppEditor; using namespace CppEditor;
using namespace CppEditor::Internal; using namespace CppEditor::Internal;
using namespace CppTools; using namespace CppTools;
using namespace TextEditor;
FunctionDeclDefLinkFinder::FunctionDeclDefLinkFinder(QObject *parent) FunctionDeclDefLinkFinder::FunctionDeclDefLinkFinder(QObject *parent)
: QObject(parent) : QObject(parent)

View File

@@ -127,7 +127,7 @@ private:
class ApplyDeclDefLinkChanges: public CppQuickFixFactory class ApplyDeclDefLinkChanges: public CppQuickFixFactory
{ {
public: public:
void match(const CppQuickFixInterface &interface, QuickFixOperations &result); void match(const CppQuickFixInterface &interface, TextEditor::QuickFixOperations &result);
}; };
} // namespace Internal } // namespace Internal

View File

@@ -55,6 +55,7 @@ using namespace CPlusPlus;
using namespace CppEditor; using namespace CppEditor;
using namespace CppEditor::Internal; using namespace CppEditor::Internal;
using namespace CppTools; using namespace CppTools;
using namespace TextEditor;
namespace { namespace {

View File

@@ -38,18 +38,18 @@ namespace Internal {
class DeclFromDef: public CppQuickFixFactory class DeclFromDef: public CppQuickFixFactory
{ {
public: public:
void match(const CppQuickFixInterface &interface, QuickFixOperations &result); void match(const CppQuickFixInterface &interface, TextEditor::QuickFixOperations &result);
}; };
class DefFromDecl: public CppQuickFixFactory class DefFromDecl: public CppQuickFixFactory
{ {
public: public:
void match(const CppQuickFixInterface &interface, QuickFixOperations &result); void match(const CppQuickFixInterface &interface, TextEditor::QuickFixOperations &result);
}; };
class ExtractFunction : public CppQuickFixFactory class ExtractFunction : public CppQuickFixFactory
{ {
void match(const CppQuickFixInterface &interface, QuickFixOperations &result); void match(const CppQuickFixInterface &interface, TextEditor::QuickFixOperations &result);
}; };
} // namespace Internal } // namespace Internal

View File

@@ -60,7 +60,7 @@ class InsertQtPropertyMembers : public CppQuickFixFactory
Q_OBJECT Q_OBJECT
public: public:
void match(const CppQuickFixInterface &interface, QuickFixOperations &result); void match(const CppQuickFixInterface &interface, TextEditor::QuickFixOperations &result);
private: private:
enum GenerateFlag { enum GenerateFlag {

View File

@@ -42,8 +42,6 @@ namespace CppEditor {
namespace Internal { class CppQuickFixAssistInterface; } namespace Internal { class CppQuickFixAssistInterface; }
typedef QSharedPointer<const Internal::CppQuickFixAssistInterface> CppQuickFixInterface; typedef QSharedPointer<const Internal::CppQuickFixAssistInterface> CppQuickFixInterface;
typedef TextEditor::QuickFixInterface QuickFixInterface;
typedef TextEditor::QuickFixOperations QuickFixOperations;
class CPPEDITOR_EXPORT CppQuickFixOperation: public TextEditor::QuickFixOperation class CPPEDITOR_EXPORT CppQuickFixOperation: public TextEditor::QuickFixOperation
{ {
@@ -66,13 +64,15 @@ class CPPEDITOR_EXPORT CppQuickFixFactory: public TextEditor::QuickFixFactory
public: public:
CppQuickFixFactory() {} 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 Implement this method to match and create the appropriate
CppQuickFixOperation objects. CppQuickFixOperation objects.
*/ */
virtual void match(const CppQuickFixInterface &interface, QuickFixOperations &result) = 0; virtual void match(const CppQuickFixInterface &interface,
TextEditor::QuickFixOperations &result) = 0;
}; };
} // namespace CppEditor } // namespace CppEditor

View File

@@ -76,8 +76,8 @@
using namespace CppEditor; using namespace CppEditor;
using namespace CppEditor::Internal; using namespace CppEditor::Internal;
using namespace CppTools; using namespace CppTools;
using namespace TextEditor;
using namespace CPlusPlus; using namespace CPlusPlus;
using namespace TextEditor;
using namespace Utils; using namespace Utils;
static inline bool isQtStringLiteral(const QByteArray &id) static inline bool isQtStringLiteral(const QByteArray &id)