summaryrefslogtreecommitdiff
path: root/libadhocutil/plugins.impl.h
diff options
context:
space:
mode:
Diffstat (limited to 'libadhocutil/plugins.impl.h')
-rw-r--r--libadhocutil/plugins.impl.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/libadhocutil/plugins.impl.h b/libadhocutil/plugins.impl.h
index becd149..772d37a 100644
--- a/libadhocutil/plugins.impl.h
+++ b/libadhocutil/plugins.impl.h
@@ -10,7 +10,7 @@
namespace AdHoc {
template<typename T>
- PluginOf<T>::PluginOf(std::shared_ptr<T> t, const std::string_view & n, const std::string_view & f, int l) :
+ PluginOf<T>::PluginOf(std::shared_ptr<T> t, const std::string_view n, const std::string_view f, int l) :
Plugin(n, f, l), impl(std::move(t))
{
}
@@ -40,28 +40,28 @@ namespace AdHoc {
template<typename T>
void
- PluginManager::add(const std::shared_ptr<T> & i, const std::string_view & n, const std::string_view & f, int l)
+ PluginManager::add(const std::shared_ptr<T> & i, const std::string_view n, const std::string_view f, int l)
{
add(std::make_shared<PluginOf<T>>(i, n, f, l));
}
template<typename T>
void
- PluginManager::remove(const std::string_view & n)
+ PluginManager::remove(const std::string_view n)
{
remove(n, typeid(T));
}
template<typename T>
std::shared_ptr<const PluginOf<T>>
- PluginManager::get(const std::string_view & n) const
+ PluginManager::get(const std::string_view n) const
{
return std::dynamic_pointer_cast<const PluginOf<T>>(get(n, typeid(T)));
}
template<typename T>
std::shared_ptr<T>
- PluginManager::getImplementation(const std::string_view & n) const
+ PluginManager::getImplementation(const std::string_view n) const
{
return std::static_pointer_cast<T>(get<T>(n)->implementation());
}
@@ -97,12 +97,12 @@ namespace AdHoc {
#define INSTANTIATEPLUGINOF(...) \
template class AdHoc::PluginOf<__VA_ARGS__>; \
template DLL_PUBLIC void AdHoc::PluginManager::add<__VA_ARGS__>( \
- const std::shared_ptr<__VA_ARGS__> &, const std::string_view &, const std::string_view &, int); \
- template DLL_PUBLIC void AdHoc::PluginManager::remove<__VA_ARGS__>(const std::string_view &); \
+ const std::shared_ptr<__VA_ARGS__> &, const std::string_view, const std::string_view, int); \
+ template DLL_PUBLIC void AdHoc::PluginManager::remove<__VA_ARGS__>(const std::string_view); \
template DLL_PUBLIC std::shared_ptr<const AdHoc::PluginOf<__VA_ARGS__>> AdHoc::PluginManager::get<__VA_ARGS__>( \
- const std::string_view &) const; \
+ const std::string_view) const; \
template DLL_PUBLIC std::shared_ptr<__VA_ARGS__> AdHoc::PluginManager::getImplementation<__VA_ARGS__>( \
- const std::string_view &) const; \
+ const std::string_view) const; \
template DLL_PUBLIC std::set<std::shared_ptr<const AdHoc::PluginOf<__VA_ARGS__>>> \
AdHoc::PluginManager::getAll<__VA_ARGS__>() const; \
template DLL_PUBLIC void AdHoc::PluginManager::addResolver<__VA_ARGS__>( \