mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-10 03:39:55 +00:00
Get rid of deprecated Messages::push_back()
This commit is contained in:
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…
x
Reference in New Issue
Block a user