From bf1f4f2117d1aebd9a02ba6a2502443f590d7ccb Mon Sep 17 00:00:00 2001 From: elsid Date: Fri, 19 Aug 2022 19:17:21 +0200 Subject: [PATCH] Mark private template functions defined in cpp as inline --- .../opencs/model/tools/referenceablecheck.hpp | 38 +++++++++---------- 1 file changed, 18 insertions(+), 20 deletions(-) diff --git a/apps/opencs/model/tools/referenceablecheck.hpp b/apps/opencs/model/tools/referenceablecheck.hpp index 83c8f12325..8c0ce27075 100644 --- a/apps/opencs/model/tools/referenceablecheck.hpp +++ b/apps/opencs/model/tools/referenceablecheck.hpp @@ -54,31 +54,29 @@ namespace CSMTools //Convenience functions void inventoryListCheck(const std::vector& itemList, CSMDoc::Messages& messages, const std::string& id); - template void inventoryItemCheck(const ITEM& someItem, - CSMDoc::Messages& messages, - const std::string& someID, - bool enchantable); //for all enchantable items. + /// for all enchantable items. + template + inline void inventoryItemCheck(const Item& someItem, CSMDoc::Messages& messages, const std::string& someID, + bool enchantable); - template void inventoryItemCheck(const ITEM& someItem, - CSMDoc::Messages& messages, - const std::string& someID); //for non-enchantable items. + /// for non-enchantable items. + template + inline void inventoryItemCheck(const Item& someItem, CSMDoc::Messages& messages, const std::string& someID); - template void toolCheck(const TOOL& someTool, - CSMDoc::Messages& messages, - const std::string& someID, - bool canbebroken); //for tools with uses. + /// for tools with uses. + template + inline void toolCheck(const Tool& someTool, CSMDoc::Messages& messages, const std::string& someID, + bool canbebroken); - template void toolCheck(const TOOL& someTool, - CSMDoc::Messages& messages, - const std::string& someID); //for tools without uses. + /// for tools without uses. + template + inline void toolCheck(const Tool& someTool, CSMDoc::Messages& messages, const std::string& someID); - template void listCheck(const LIST& someList, - CSMDoc::Messages& messages, - const std::string& someID); + template + inline void listCheck(const List& someList, CSMDoc::Messages& messages, const std::string& someID); - template void scriptCheck(const TOOL& someTool, - CSMDoc::Messages& messages, - const std::string& someID); + template + inline void scriptCheck(const Tool& someTool, CSMDoc::Messages& messages, const std::string& someID); const CSMWorld::RefIdData& mReferencables; const CSMWorld::IdCollection& mRaces;