diff --git a/apps/openmw/mwrender/groundcover.hpp b/apps/openmw/mwrender/groundcover.hpp index cd80978bef..b92ab97c95 100644 --- a/apps/openmw/mwrender/groundcover.hpp +++ b/apps/openmw/mwrender/groundcover.hpp @@ -48,12 +48,9 @@ namespace MWRender float mScale; std::string mModel; - GroundcoverEntry(const ESM::CellRef& ref, const std::string& model) - { - mPos = ref.mPos; - mScale = ref.mScale; - mModel = model; - } + GroundcoverEntry(const ESM::CellRef& ref, const std::string& model): + mPos(ref.mPos), mScale(ref.mScale), mModel(model) + {} }; private: diff --git a/apps/openmw/mwscript/scriptmanagerimp.hpp b/apps/openmw/mwscript/scriptmanagerimp.hpp index 04693eea6a..aff8318f72 100644 --- a/apps/openmw/mwscript/scriptmanagerimp.hpp +++ b/apps/openmw/mwscript/scriptmanagerimp.hpp @@ -48,11 +48,9 @@ namespace MWScript Compiler::Locals mLocals; std::set mInactive; - CompiledScript(const std::vector& code, const Compiler::Locals& locals) - { - mByteCode = code; - mLocals = locals; - } + CompiledScript(const std::vector& code, const Compiler::Locals& locals): + mByteCode(code), mLocals(locals) + {} }; typedef std::map ScriptCollection; diff --git a/components/esm/magiceffects.hpp b/components/esm/magiceffects.hpp index a931c68fa5..5b8b0c924a 100644 --- a/components/esm/magiceffects.hpp +++ b/components/esm/magiceffects.hpp @@ -21,12 +21,9 @@ namespace ESM struct SummonKey { - SummonKey(int effectId, const std::string& sourceId, int index) - { - mEffectId = effectId; - mSourceId = sourceId; - mEffectIndex = index; - } + SummonKey(int effectId, const std::string& sourceId, int index): + mEffectId(effectId), mSourceId(sourceId), mEffectIndex(index) + {} bool operator==(const SummonKey &other) const {