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

https://about.gitlab.com/releases/2022/01/11/security-release-gitlab-14-6-2-released/
https://about.gitlab.com/releases/2022/01/04/gitlab-14-6-1-released/

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);
public:
T *create(const QString& key);
T *create(const QString& key) const;
public:
QStringList keys(void);
QStringList keys(void) const;
private:
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
{
if(!this->creators.contains(key))
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