Commit 2620805d authored by NICLAUSSE Nicolas's avatar NICLAUSSE Nicolas
Browse files

don't use interface as variable name (for MSVC)

parent c06e4f57
......@@ -98,14 +98,14 @@ QStringList dtkAbstractViewFactory::implementations(void)
return d->interfaces.values();
}
QStringList dtkAbstractViewFactory::implementations(const QString& interface)
QStringList dtkAbstractViewFactory::implementations(const QString& interface_name)
{
QStringList implementations;
if(d->interfaces.keys().contains(interface))
implementations << d->interfaces.values(interface);
if(d->interfaces.keys().contains(interface_name))
implementations << d->interfaces.values(interface_name);
else
qDebug() << "There is no available implementation of " << interface ;
qDebug() << "There is no available implementation of " << interface_name ;
return implementations;
}
......@@ -179,11 +179,11 @@ bool dtkAbstractViewFactory::registerViewType(const QString& type, dtkAbstractVi
return false;
}
bool dtkAbstractViewFactory::registerViewType(const QString& type, dtkAbstractViewCreator func, const QString& interface)
bool dtkAbstractViewFactory::registerViewType(const QString& type, dtkAbstractViewCreator func, const QString& interface_name)
{
if(!d->creators.contains(type)) {
d->creators.insert(type, func);
d->interfaces.insertMulti(interface, type);
d->interfaces.insertMulti(interface_name, type);
return true;
}
......
......@@ -45,7 +45,7 @@ public:
static dtkAbstractViewFactory *instance(void);
bool registerViewType (const QString& type, dtkAbstractViewCreator func);
bool registerViewType (const QString& type, dtkAbstractViewCreator func, const QString& interface);
bool registerViewType (const QString& type, dtkAbstractViewCreator func, const QString& interface_name);
bool registerViewAnimatorType (const QString& type, const QStringList& handled, dtkAbstractViewAnimatorCreator func);
bool registerViewNavigatorType (const QString& type, const QStringList& handled, dtkAbstractViewNavigatorCreator func);
bool registerViewInteractorType(const QString& type, const QStringList& handled, dtkAbstractViewInteractorCreator func);
......@@ -73,7 +73,7 @@ public:
public:
QStringList implementations(void);
QStringList implementations(const QString& interface);
QStringList implementations(const QString& interface_name);
QStringList interfaces(void);
signals:
......
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