mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-21 09:39:56 +00:00
More Coverity fixes
This commit is contained in:
parent
84e71f4977
commit
e749461d06
@ -25,7 +25,7 @@ namespace
|
||||
struct AddSpan : AddContent
|
||||
{
|
||||
AddSpan(MWGui::BookTypesetter::Ptr typesetter, MWGui::BookTypesetter::Style* body_style)
|
||||
: AddContent(typesetter, body_style)
|
||||
: AddContent(std::move(typesetter), body_style)
|
||||
{
|
||||
}
|
||||
|
||||
@ -159,7 +159,7 @@ namespace MWGui
|
||||
typedef TypesetBook::Ptr book;
|
||||
|
||||
JournalBooks::JournalBooks(JournalViewModel::Ptr model, ToUTF8::FromType encoding)
|
||||
: mModel(model)
|
||||
: mModel(std::move(model))
|
||||
, mEncoding(encoding)
|
||||
, mIndexPagesCount(0)
|
||||
{
|
||||
|
@ -465,7 +465,7 @@ void MWMechanics::NpcStats::writeState(ESM::NpcStats& state) const
|
||||
{
|
||||
// TODO extend format
|
||||
auto index = ESM::Skill::refIdToIndex(id);
|
||||
value.writeState(state.mSkills[index]);
|
||||
value.writeState(state.mSkills[static_cast<unsigned int>(index)]);
|
||||
}
|
||||
|
||||
state.mIsWerewolf = mIsWerewolf;
|
||||
|
Loading…
x
Reference in New Issue
Block a user