forked from qt-creator/qt-creator
cppquickfixes: compile fix for msvc2008
Change-Id: I287c76372d2c50c408b9ef74e292a36d8e278449 Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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)
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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 {
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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 {
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user