Core/PluginLoader: Add [[nodiscard]] qualifier to Load function
This commit is contained in:
@@ -28,7 +28,7 @@ namespace Nz
|
|||||||
|
|
||||||
void AddSearchDirectory(const std::filesystem::path& directoryPath);
|
void AddSearchDirectory(const std::filesystem::path& directoryPath);
|
||||||
|
|
||||||
template<typename T> Plugin<T> Load(bool activate = true);
|
template<typename T> [[nodiscard]] Plugin<T> Load(bool activate = true);
|
||||||
#ifndef NAZARA_PLUGINS_STATIC
|
#ifndef NAZARA_PLUGINS_STATIC
|
||||||
GenericPlugin Load(const std::filesystem::path& pluginPath, bool activate = true);
|
GenericPlugin Load(const std::filesystem::path& pluginPath, bool activate = true);
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user