1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-26 18:35:20 +00:00

Mark private template functions defined in cpp as inline

This commit is contained in:
elsid 2022-08-19 19:17:21 +02:00
parent ab2931223e
commit bf1f4f2117
No known key found for this signature in database
GPG Key ID: 4DE04C198CBA7625

View File

@ -54,31 +54,29 @@ namespace CSMTools
//Convenience functions //Convenience functions
void inventoryListCheck(const std::vector<ESM::ContItem>& itemList, CSMDoc::Messages& messages, const std::string& id); void inventoryListCheck(const std::vector<ESM::ContItem>& itemList, CSMDoc::Messages& messages, const std::string& id);
template<typename ITEM> void inventoryItemCheck(const ITEM& someItem, /// for all enchantable items.
CSMDoc::Messages& messages, template <typename Item>
const std::string& someID, inline void inventoryItemCheck(const Item& someItem, CSMDoc::Messages& messages, const std::string& someID,
bool enchantable); //for all enchantable items. bool enchantable);
template<typename ITEM> void inventoryItemCheck(const ITEM& someItem, /// for non-enchantable items.
CSMDoc::Messages& messages, template <typename Item>
const std::string& someID); //for non-enchantable items. inline void inventoryItemCheck(const Item& someItem, CSMDoc::Messages& messages, const std::string& someID);
template<typename TOOL> void toolCheck(const TOOL& someTool, /// for tools with uses.
CSMDoc::Messages& messages, template <typename Tool>
const std::string& someID, inline void toolCheck(const Tool& someTool, CSMDoc::Messages& messages, const std::string& someID,
bool canbebroken); //for tools with uses. bool canbebroken);
template<typename TOOL> void toolCheck(const TOOL& someTool, /// for tools without uses.
CSMDoc::Messages& messages, template <typename Tool>
const std::string& someID); //for tools without uses. inline void toolCheck(const Tool& someTool, CSMDoc::Messages& messages, const std::string& someID);
template<typename LIST> void listCheck(const LIST& someList, template <typename List>
CSMDoc::Messages& messages, inline void listCheck(const List& someList, CSMDoc::Messages& messages, const std::string& someID);
const std::string& someID);
template<typename TOOL> void scriptCheck(const TOOL& someTool, template <typename Tool>
CSMDoc::Messages& messages, inline void scriptCheck(const Tool& someTool, CSMDoc::Messages& messages, const std::string& someID);
const std::string& someID);
const CSMWorld::RefIdData& mReferencables; const CSMWorld::RefIdData& mReferencables;
const CSMWorld::IdCollection<ESM::Race>& mRaces; const CSMWorld::IdCollection<ESM::Race>& mRaces;