MAJ terminée. Nous sommes passés en version 14.6.2 . Pour consulter les "releases notes" associées c'est ici :

Commit 0ce03125 authored by KLOCZKO Thibaud's avatar KLOCZKO Thibaud
Browse files

Add const to access methods of the plugin factory.

parent 5d221cae
......@@ -33,10 +33,10 @@ public:
void record(const QString& key, creator func);
T *create(const QString& key);
T *create(const QString& key) const;
QStringList keys(void);
QStringList keys(void) const;
QHash<QString, creator> creators;
......@@ -42,7 +42,7 @@ template <typename T> void dtkCorePluginFactory<T>::record(const QString& key, c
// Type creator invokation
// /////////////////////////////////////////////////////////////////
template <typename T> T *dtkCorePluginFactory<T>::create(const QString& key)
template <typename T> T *dtkCorePluginFactory<T>::create(const QString& key) const
return NULL;
......@@ -54,7 +54,7 @@ template <typename T> T *dtkCorePluginFactory<T>::create(const QString& key)
// Type creator inspection
// /////////////////////////////////////////////////////////////////
template <typename T> QStringList dtkCorePluginFactory<T>::keys(void)
template <typename T> QStringList dtkCorePluginFactory<T>::keys(void) const
return this->creators.keys();
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