Get rid of deprecated Messages::push_back()

pull/541/head
Capostrophic 6 years ago
parent 47b9008743
commit dabdb0bfaf

@ -35,11 +35,6 @@ void CSMDoc::Messages::add (const CSMWorld::UniversalId& id, const std::string&
mMessages.push_back (Message (id, message, hint, severity));
}
void CSMDoc::Messages::push_back (const std::pair<CSMWorld::UniversalId, std::string>& data)
{
add (data.first, data.second);
}
CSMDoc::Messages::Iterator CSMDoc::Messages::begin() const
{
return mMessages.begin();

@ -56,9 +56,6 @@ namespace CSMDoc
const std::string& hint = "",
Message::Severity severity = Message::Severity_Default);
/// \deprecated Use add instead.
void push_back (const std::pair<CSMWorld::UniversalId, std::string>& data);
Iterator begin() const;
Iterator end() const;

@ -737,7 +737,7 @@ void CSMTools::ReferenceableCheckStage::npcCheck (
}
if (npc.mHead.empty())
messages.push_back (std::make_pair (id, "Head is missing"));
messages.add(id, "Head is missing", "", CSMDoc::Message::Severity_Error);
else
{
if (mBodyParts.searchId(npc.mHead) == -1)
@ -746,7 +746,7 @@ void CSMTools::ReferenceableCheckStage::npcCheck (
}
if (npc.mHair.empty())
messages.push_back (std::make_pair (id, "Hair is missing"));
messages.add(id, "Hair is missing", "", CSMDoc::Message::Severity_Error);
else
{
if (mBodyParts.searchId(npc.mHair) == -1)

Loading…
Cancel
Save