From 8a5e5f7643f904bf3ab30e7c3a8d056df199f8e1 Mon Sep 17 00:00:00 2001 From: SirLynix Date: Wed, 7 Feb 2024 15:51:07 +0100 Subject: [PATCH] Core/PluginLoader: Add [[nodiscard]] qualifier to Load function --- include/Nazara/Core/PluginLoader.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/Nazara/Core/PluginLoader.hpp b/include/Nazara/Core/PluginLoader.hpp index 20031c0ae..d18de5e00 100644 --- a/include/Nazara/Core/PluginLoader.hpp +++ b/include/Nazara/Core/PluginLoader.hpp @@ -28,7 +28,7 @@ namespace Nz void AddSearchDirectory(const std::filesystem::path& directoryPath); - template Plugin Load(bool activate = true); + template [[nodiscard]] Plugin Load(bool activate = true); #ifndef NAZARA_PLUGINS_STATIC GenericPlugin Load(const std::filesystem::path& pluginPath, bool activate = true); #endif