1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-02-05 06:40:09 +00:00
OpenMW/components/esm/refid.cpp
fteppe c283ea0ae8 string_view& => string_view
fixed ref to temp variable
2022-12-27 19:15:56 +01:00

35 lines
560 B
C++

#include "refid.hpp"
#include <iostream>
#include "components/misc/strings/algorithm.hpp"
namespace ESM
{
bool RefId::operator==(const RefId& rhs) const
{
return this->mId == rhs.mId;
}
std::ostream& operator<<(std::ostream& os, const RefId& refId)
{
os << refId.getRefIdString();
return os;
}
RefId RefId::stringRefId(std::string_view id)
{
RefId newRefId;
newRefId.mId = Misc::StringUtils::lowerCase(id);
return newRefId;
}
const RefId RefId::sEmpty = {};
}