Commit 63294506 authored by Bernhard Beschow's avatar Bernhard Beschow
Browse files

[API change] const'ify

parent f6e4467e
......@@ -74,7 +74,7 @@ QList<const RenderPlugin *> PluginManager::renderPlugins() const
return d->m_renderPluginTemplates;
}
void PluginManager::addRenderPlugin( RenderPlugin *plugin )
void PluginManager::addRenderPlugin( const RenderPlugin *plugin )
{
d->loadPlugins();
d->m_renderPluginTemplates << plugin;
......@@ -87,7 +87,7 @@ QList<const PositionProviderPlugin *> PluginManager::positionProviderPlugins() c
return d->m_positionProviderPluginTemplates;
}
void PluginManager::addPositionProviderPlugin( PositionProviderPlugin *plugin )
void PluginManager::addPositionProviderPlugin( const PositionProviderPlugin *plugin )
{
d->loadPlugins();
d->m_positionProviderPluginTemplates << plugin;
......@@ -100,7 +100,7 @@ QList<const SearchRunnerPlugin *> PluginManager::searchRunnerPlugins() const
return d->m_searchRunnerPlugins;
}
void PluginManager::addSearchRunnerPlugin( SearchRunnerPlugin *plugin )
void PluginManager::addSearchRunnerPlugin( const SearchRunnerPlugin *plugin )
{
d->loadPlugins();
d->m_searchRunnerPlugins << plugin;
......@@ -113,7 +113,7 @@ QList<const ReverseGeocodingRunnerPlugin *> PluginManager::reverseGeocodingRunne
return d->m_reverseGeocodingRunnerPlugins;
}
void PluginManager::addReverseGeocodingRunnerPlugin( ReverseGeocodingRunnerPlugin *plugin )
void PluginManager::addReverseGeocodingRunnerPlugin( const ReverseGeocodingRunnerPlugin *plugin )
{
d->loadPlugins();
d->m_reverseGeocodingRunnerPlugins << plugin;
......@@ -139,7 +139,7 @@ QList<const ParseRunnerPlugin *> PluginManager::parsingRunnerPlugins() const
return d->m_parsingRunnerPlugins;
}
void PluginManager::addParseRunnerPlugin( ParseRunnerPlugin *plugin )
void PluginManager::addParseRunnerPlugin( const ParseRunnerPlugin *plugin )
{
d->loadPlugins();
d->m_parsingRunnerPlugins << plugin;
......
......@@ -65,7 +65,7 @@ class MARBLE_EXPORT PluginManager : public QObject
* don't need to call this method since all plugins are loaded automatically.
* @param plugin The plugin to add. Ownership retains with the caller.
*/
void addRenderPlugin( RenderPlugin * plugin );
void addRenderPlugin( const RenderPlugin *plugin );
/**
* @brief Returns all available PositionProviderPlugins.
......@@ -81,7 +81,7 @@ class MARBLE_EXPORT PluginManager : public QObject
* don't need to call this method since all plugins are loaded automatically.
* @param plugin The plugin to add. Ownership retains with the caller.
*/
void addPositionProviderPlugin( PositionProviderPlugin * plugin );
void addPositionProviderPlugin( const PositionProviderPlugin *plugin );
/**
* Returns all search runner plugins.
......@@ -94,7 +94,7 @@ class MARBLE_EXPORT PluginManager : public QObject
* don't need to call this method since all plugins are loaded automatically.
* @param plugin The plugin to add. Ownership retains with the caller.
*/
void addSearchRunnerPlugin( SearchRunnerPlugin * plugin );
void addSearchRunnerPlugin( const SearchRunnerPlugin *plugin );
/**
* Returns all reverse geocoding runner plugins.
......@@ -107,7 +107,7 @@ class MARBLE_EXPORT PluginManager : public QObject
* don't need to call this method since all plugins are loaded automatically.
* @param plugin The plugin to add. Ownership retains with the caller.
*/
void addReverseGeocodingRunnerPlugin( ReverseGeocodingRunnerPlugin * plugin );
void addReverseGeocodingRunnerPlugin( const ReverseGeocodingRunnerPlugin *plugin );
/**
* Returns all routing runner plugins.
......@@ -133,7 +133,7 @@ class MARBLE_EXPORT PluginManager : public QObject
* don't need to call this method since all plugins are loaded automatically.
* @param plugin The plugin to add. Ownership retains with the caller.
*/
void addParseRunnerPlugin( ParseRunnerPlugin * plugin );
void addParseRunnerPlugin( const ParseRunnerPlugin *plugin );
Q_SIGNALS:
void renderPluginsChanged();
......
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