Commit 19a44fd7 authored by Friedemann Kleint's avatar Friedemann Kleint

Fix compilation with MSVC2013.

src\plugins\qmakeprojectmanager\qmakeandroidrunfactories.h(54) : warning C4373: 'QmakeProjectManager::Internal::QmakeAndroidRunConfigurationFactory::displayNameForId': virtual function overrides 'ProjectExplorer::IRunConfigurationFactory::displayNameForId', previous versions of the compiler did not override when parameters only differed by const/volatile qualifiers
        ..\..\plugins\projectexplorer/runconfiguration.h(222) : see declaration of 'ProjectExplorer::IRunConfigurationFactory::displayNameForId'
src\plugins\qmakeprojectmanager\qmakeandroidrunfactories.h(57) : warning C4373: 'QmakeProjectManager::Internal::QmakeAndroidRunConfigurationFactory::canCreate': virtual function overrides 'ProjectExplorer::IRunConfigurationFactory::canCreate', previous versions of the compiler did not override when parameters only differed by const/volatile qualifiers
        ..\..\plugins\projectexplorer/runconfiguration.h(224) : see declaration of 'ProjectExplorer::IRunConfigurationFactory::canCreate'
src\plugins\qmakeprojectmanager\qmakeandroidrunfactories.h(70) : warning C4373: 'QmakeProjectManager::Internal::QmakeAndroidRunConfigurationFactory::doCreate': virtual function overrides 'ProjectExplorer::IRunConfigurationFactory::doCreate', previous versions of the compiler did not override when parameters only differed by const/volatile qualifiers
        ..\..\plugins\projectexplorer/runconfiguration.h(239) : see declaration of 'ProjectExplorer::IRunConfigurationFactory::doCreate'
.\qmakeandroidrunfactories.cpp(135) : fatal error C1021: invalid preprocessor command 'warning'

Change-Id: Ie20cecf18ac393bc014f5b2ddcf7fea527b8ca0d
Reviewed-by: default avatarDaniel Teske <daniel.teske@digia.com>
parent 03ee5dc4
......@@ -44,11 +44,10 @@ public:
explicit QmakeAndroidBuildApkStepFactory(QObject *parent = 0);
QList<Core::Id> availableCreationIds(ProjectExplorer::BuildStepList *parent) const;
QString displayNameForId(const Core::Id id) const;
QString displayNameForId(Core::Id id) const;
bool canCreate(ProjectExplorer::BuildStepList *parent,
const Core::Id id) const;
ProjectExplorer::BuildStep *create(ProjectExplorer::BuildStepList *parent, const Core::Id id);
bool canCreate(ProjectExplorer::BuildStepList *parent, Core::Id id) const;
ProjectExplorer::BuildStep *create(ProjectExplorer::BuildStepList *parent, Core::Id id);
bool canRestore(ProjectExplorer::BuildStepList *parent, const QVariantMap &map) const;
ProjectExplorer::BuildStep *restore(ProjectExplorer::BuildStepList *parent, const QVariantMap &map);
......
......@@ -61,12 +61,12 @@ QmakeAndroidRunConfigurationFactory::QmakeAndroidRunConfigurationFactory(QObject
{
}
QString QmakeAndroidRunConfigurationFactory::displayNameForId(const Core::Id id) const
QString QmakeAndroidRunConfigurationFactory::displayNameForId(Core::Id id) const
{
return QFileInfo(pathFromId(id)).completeBaseName();
}
bool QmakeAndroidRunConfigurationFactory::canCreate(Target *parent, const Core::Id id) const
bool QmakeAndroidRunConfigurationFactory::canCreate(Target *parent, Core::Id id) const
{
if (!canHandle(parent))
return false;
......@@ -100,7 +100,7 @@ QList<Core::Id> QmakeAndroidRunConfigurationFactory::availableCreationIds(Target
return QmakeProject::idsForNodes(base, nodes);
}
RunConfiguration *QmakeAndroidRunConfigurationFactory::doCreate(Target *parent, const Core::Id id)
RunConfiguration *QmakeAndroidRunConfigurationFactory::doCreate(Target *parent, Core::Id id)
{
if (parent->project()->rootProjectNode())
return new QmakeAndroidRunConfiguration(parent, id, parent->project()->rootProjectNode()->path());
......@@ -132,7 +132,9 @@ bool QmakeAndroidRunConfigurationFactory::canHandle(Target *t) const
&& qobject_cast<QmakeProject *>(t->project());
}
#warning FIX ME !!!
#ifdef Q_CC_GCC
# warning FIX ME !!!
#endif
QList<RunConfiguration *> QmakeAndroidRunConfigurationFactory::runConfigurationsForNode(Target *t, ProjectExplorer::Node *n)
{
QList<ProjectExplorer::RunConfiguration *> result;
......
......@@ -51,10 +51,10 @@ class QmakeAndroidRunConfigurationFactory : public ProjectExplorer::IRunConfigur
public:
explicit QmakeAndroidRunConfigurationFactory(QObject *parent = 0);
QString displayNameForId(const Core::Id id) const;
QString displayNameForId(Core::Id id) const;
QList<Core::Id> availableCreationIds(ProjectExplorer::Target *parent, CreationMode mode = UserCreate) const;
bool canCreate(ProjectExplorer::Target *parent, const Core::Id id) const;
bool canCreate(ProjectExplorer::Target *parent, Core::Id id) const;
bool canRestore(ProjectExplorer::Target *parent, const QVariantMap &map) const;
......@@ -67,7 +67,7 @@ public:
private:
bool canHandle(ProjectExplorer::Target *t) const;
ProjectExplorer::RunConfiguration *doCreate(ProjectExplorer::Target *parent, const Core::Id id);
ProjectExplorer::RunConfiguration *doCreate(ProjectExplorer::Target *parent, Core::Id id);
ProjectExplorer::RunConfiguration *doRestore(ProjectExplorer::Target *parent,
const QVariantMap &map);
};
......
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