Commit dabdb0bf authored by Capostrophic's avatar Capostrophic

Get rid of deprecated Messages::push_back()

parent 47b90087
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment