mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-05 06:40:09 +00:00
Silent coverity warning
This commit is contained in:
parent
42b77342c5
commit
4fa8756791
@ -30,7 +30,7 @@ namespace MWWorld
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
const ESM::RefNum& CellRef::getRefNum() const
|
const ESM::RefNum& CellRef::getRefNum() const noexcept
|
||||||
{
|
{
|
||||||
return std::visit(ESM::VisitOverload{
|
return std::visit(ESM::VisitOverload{
|
||||||
[&](const ESM4::Reference& ref) -> const ESM::RefNum& { return ref.mId; },
|
[&](const ESM4::Reference& ref) -> const ESM::RefNum& { return ref.mId; },
|
||||||
|
@ -27,7 +27,7 @@ namespace MWWorld
|
|||||||
explicit CellRef(const ESM4::ActorCharacter& ref);
|
explicit CellRef(const ESM4::ActorCharacter& ref);
|
||||||
|
|
||||||
// Note: Currently unused for items in containers
|
// Note: Currently unused for items in containers
|
||||||
const ESM::RefNum& getRefNum() const;
|
const ESM::RefNum& getRefNum() const noexcept;
|
||||||
|
|
||||||
// Returns RefNum.
|
// Returns RefNum.
|
||||||
// If RefNum is not set, assigns a generated one and changes the "lastAssignedRefNum" counter.
|
// If RefNum is not set, assigns a generated one and changes the "lastAssignedRefNum" counter.
|
||||||
|
@ -49,7 +49,7 @@ namespace MWWorld
|
|||||||
if (!refNum.isSet())
|
if (!refNum.isSet())
|
||||||
return;
|
return;
|
||||||
auto it = mIndex.find(refNum);
|
auto it = mIndex.find(refNum);
|
||||||
if (it != mIndex.end() && it->second.getBase() == &ref)
|
if (it != mIndex.end() && it->second.mRef == &ref)
|
||||||
{
|
{
|
||||||
mIndex.erase(it);
|
mIndex.erase(it);
|
||||||
++mRevision;
|
++mRevision;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user