diff --git a/apps/opencs/model/doc/document.cpp b/apps/opencs/model/doc/document.cpp index 779c9431d1..fc076bcfaa 100644 --- a/apps/opencs/model/doc/document.cpp +++ b/apps/opencs/model/doc/document.cpp @@ -87,7 +87,7 @@ void CSMDoc::Document::addOptionalGlobals() "DaysPassed", "PCWerewolf", "PCYear", - 0 + nullptr, }; for (int i=0; sGlobals[i]; ++i) @@ -162,7 +162,7 @@ void CSMDoc::Document::createBase() "PCVampire", "PCWerewolf", "PCYear", - 0 + nullptr, }; for (int i=0; sGlobals[i]; ++i) @@ -200,7 +200,7 @@ void CSMDoc::Document::createBase() "Idle", "Flee", "Hit", - 0 + nullptr, }; for (int i=0; sVoice[i]; ++i) @@ -225,7 +225,7 @@ void CSMDoc::Document::createBase() "Greeting 7", "Greeting 8", "Greeting 9", - 0 + nullptr, }; for (int i=0; sGreetings[i]; ++i) @@ -250,7 +250,7 @@ void CSMDoc::Document::createBase() "Admire Fail", "Taunt Fail", "Bribe Fail", - 0 + nullptr, }; for (int i=0; sPersuasion[i]; ++i) diff --git a/apps/opencs/model/filter/parser.cpp b/apps/opencs/model/filter/parser.cpp index 8aa8609059..d8b8a441c3 100644 --- a/apps/opencs/model/filter/parser.cpp +++ b/apps/opencs/model/filter/parser.cpp @@ -199,7 +199,7 @@ CSMFilter::Token CSMFilter::Parser::checkKeywords (const Token& token) "true", "false", "and", "or", "not", "string", "value", - 0 + nullptr, }; std::string string = Misc::StringUtils::lowerCase (token.mString); diff --git a/apps/opencs/model/prefs/shortcutmanager.cpp b/apps/opencs/model/prefs/shortcutmanager.cpp index 4b3f81d0ef..25f295cd37 100644 --- a/apps/opencs/model/prefs/shortcutmanager.cpp +++ b/apps/opencs/model/prefs/shortcutmanager.cpp @@ -780,7 +780,7 @@ namespace CSMPrefs std::make_pair((int)Qt::Key_LastNumberRedial , "LastNumberRedial"), std::make_pair((int)Qt::Key_Camera , "Camera"), std::make_pair((int)Qt::Key_CameraFocus , "CameraFocus"), - std::make_pair(0 , (const char*) nullptr) + std::make_pair(0 , static_cast(nullptr)), }; } diff --git a/apps/opencs/model/tools/tools.cpp b/apps/opencs/model/tools/tools.cpp index a04332a5ae..5c2b822f3b 100644 --- a/apps/opencs/model/tools/tools.cpp +++ b/apps/opencs/model/tools/tools.cpp @@ -245,7 +245,7 @@ int CSMTools::Tools::getRunningOperations() const CSMDoc::State_Verifying, CSMDoc::State_Searching, CSMDoc::State_Merging, - -1 + -1, }; int result = 0; diff --git a/apps/opencs/model/world/columnbase.cpp b/apps/opencs/model/world/columnbase.cpp index 6f7bb12b3c..eed4202bd6 100644 --- a/apps/opencs/model/world/columnbase.cpp +++ b/apps/opencs/model/world/columnbase.cpp @@ -91,7 +91,7 @@ bool CSMWorld::ColumnBase::isId (Display display) Display_EffectAttribute, Display_IngredEffectId, - Display_None + Display_None, }; for (int i=0; ids[i]!=Display_None; ++i) diff --git a/apps/opencs/model/world/infoselectwrapper.cpp b/apps/opencs/model/world/infoselectwrapper.cpp index 3200d39fcc..dc1b336f03 100644 --- a/apps/opencs/model/world/infoselectwrapper.cpp +++ b/apps/opencs/model/world/infoselectwrapper.cpp @@ -98,7 +98,7 @@ const char* CSMWorld::ConstInfoSelectWrapper::FunctionEnumStrings[] = "Not Race", "Not Cell", "Not Local", - 0 + nullptr, }; const char* CSMWorld::ConstInfoSelectWrapper::RelationEnumStrings[] = @@ -109,7 +109,7 @@ const char* CSMWorld::ConstInfoSelectWrapper::RelationEnumStrings[] = ">=", "<", "<=", - 0 + nullptr, }; const char* CSMWorld::ConstInfoSelectWrapper::ComparisonEnumStrings[] = @@ -117,7 +117,7 @@ const char* CSMWorld::ConstInfoSelectWrapper::ComparisonEnumStrings[] = "Boolean", "Integer", "Numeric", - 0 + nullptr, }; // static functions diff --git a/apps/opencs/model/world/universalid.cpp b/apps/opencs/model/world/universalid.cpp index 1f11e21bdc..0c2910ce53 100644 --- a/apps/opencs/model/world/universalid.cpp +++ b/apps/opencs/model/world/universalid.cpp @@ -54,7 +54,8 @@ namespace { CSMWorld::UniversalId::Class_RecordList, CSMWorld::UniversalId::Type_Pathgrids, "Pathgrids", ":./pathgrid.png" }, { CSMWorld::UniversalId::Class_RecordList, CSMWorld::UniversalId::Type_StartScripts, "Start Scripts", ":./start-script.png" }, { CSMWorld::UniversalId::Class_RecordList, CSMWorld::UniversalId::Type_MetaDatas, "Metadata", ":./metadata.png" }, - { CSMWorld::UniversalId::Class_None, CSMWorld::UniversalId::Type_None, 0, 0 } // end marker + // end marker + { CSMWorld::UniversalId::Class_None, CSMWorld::UniversalId::Type_None, 0, 0 }, }; static const TypeData sIdArg[] = @@ -120,8 +121,8 @@ namespace { CSMWorld::UniversalId::Class_Record, CSMWorld::UniversalId::Type_Pathgrid, "Pathgrid", ":./pathgrid.png" }, { CSMWorld::UniversalId::Class_Record, CSMWorld::UniversalId::Type_StartScript, "Start Script", ":./start-script.png" }, { CSMWorld::UniversalId::Class_Record, CSMWorld::UniversalId::Type_MetaData, "Metadata", ":./metadata.png" }, - - { CSMWorld::UniversalId::Class_None, CSMWorld::UniversalId::Type_None, 0, 0 } // end marker + // end marker + { CSMWorld::UniversalId::Class_None, CSMWorld::UniversalId::Type_None, 0, 0 }, }; static const TypeData sIndexArg[] = @@ -129,7 +130,8 @@ namespace { CSMWorld::UniversalId::Class_Transient, CSMWorld::UniversalId::Type_VerificationResults, "Verification Results", ":./menu-verify.png" }, { CSMWorld::UniversalId::Class_Transient, CSMWorld::UniversalId::Type_LoadErrorLog, "Load Error Log", ":./error-log.png" }, { CSMWorld::UniversalId::Class_Transient, CSMWorld::UniversalId::Type_Search, "Global Search", ":./menu-search.png" }, - { CSMWorld::UniversalId::Class_None, CSMWorld::UniversalId::Type_None, 0, 0 } // end marker + // end marker + { CSMWorld::UniversalId::Class_None, CSMWorld::UniversalId::Type_None, 0, 0 }, }; } diff --git a/apps/opencs/view/doc/view.cpp b/apps/opencs/view/doc/view.cpp index e47ce65654..0d5dfd829b 100644 --- a/apps/opencs/view/doc/view.cpp +++ b/apps/opencs/view/doc/view.cpp @@ -538,7 +538,8 @@ void CSVDoc::View::updateDocumentState() { CSMDoc::State_Saving, CSMDoc::State_Verifying, CSMDoc::State_Searching, CSMDoc::State_Merging, - -1 // end marker + // end marker + -1, }; int state = mDocument->getState() ; diff --git a/apps/opencs/view/doc/viewmanager.cpp b/apps/opencs/view/doc/viewmanager.cpp index 0c4c6a6d56..fc839a4c7b 100644 --- a/apps/opencs/view/doc/viewmanager.cpp +++ b/apps/opencs/view/doc/viewmanager.cpp @@ -112,7 +112,7 @@ CSVDoc::ViewManager::ViewManager (CSMDoc::DocumentManager& documentManager) { CSMWorld::ColumnBase::Display_BookType, CSMWorld::Columns::ColumnId_BookType, false }, { CSMWorld::ColumnBase::Display_BloodType, CSMWorld::Columns::ColumnId_BloodType, false }, { CSMWorld::ColumnBase::Display_EmitterType, CSMWorld::Columns::ColumnId_EmitterType, false }, - { CSMWorld::ColumnBase::Display_GenderNpc, CSMWorld::Columns::ColumnId_Gender, false } + { CSMWorld::ColumnBase::Display_GenderNpc, CSMWorld::Columns::ColumnId_Gender, false }, }; for (std::size_t i=0; i damageEffects{ ESM::MagicEffect::FireDamage, ESM::MagicEffect::ShockDamage, ESM::MagicEffect::FrostDamage, ESM::MagicEffect::Poison, - ESM::MagicEffect::SunDamage, ESM::MagicEffect::DamageHealth, ESM::MagicEffect::AbsorbHealth + ESM::MagicEffect::SunDamage, ESM::MagicEffect::DamageHealth, ESM::MagicEffect::AbsorbHealth, }; const bool isDamageEffect = std::find(damageEffects.begin(), damageEffects.end(), effect.mEffectId) != damageEffects.end(); diff --git a/apps/openmw/mwmechanics/spelleffects.cpp b/apps/openmw/mwmechanics/spelleffects.cpp index 78ec41e2de..f83d76efbd 100644 --- a/apps/openmw/mwmechanics/spelleffects.cpp +++ b/apps/openmw/mwmechanics/spelleffects.cpp @@ -379,7 +379,7 @@ namespace {ESM::MagicEffect::BoundLongsword, "sMagicBoundLongswordID"}, {ESM::MagicEffect::BoundMace, "sMagicBoundMaceID"}, {ESM::MagicEffect::BoundShield, "sMagicBoundShieldID"}, - {ESM::MagicEffect::BoundSpear, "sMagicBoundSpearID"} + {ESM::MagicEffect::BoundSpear, "sMagicBoundSpearID"}, }; } @@ -787,7 +787,7 @@ void applyMagicEffect(const MWWorld::Ptr& target, const MWWorld::Ptr& caster, co MWWorld::InventoryStore::Slot_RightGauntlet, MWWorld::InventoryStore::Slot_Helmet, MWWorld::InventoryStore::Slot_Greaves, - MWWorld::InventoryStore::Slot_Boots + MWWorld::InventoryStore::Slot_Boots, }; for (const int priority : priorities) { diff --git a/apps/openmw/mwmechanics/spellpriority.cpp b/apps/openmw/mwmechanics/spellpriority.cpp index 52ad95f710..de0158040d 100644 --- a/apps/openmw/mwmechanics/spellpriority.cpp +++ b/apps/openmw/mwmechanics/spellpriority.cpp @@ -495,7 +495,7 @@ namespace MWMechanics MWWorld::InventoryStore::Slot_RightGauntlet, MWWorld::InventoryStore::Slot_Helmet, MWWorld::InventoryStore::Slot_Greaves, - MWWorld::InventoryStore::Slot_Boots + MWWorld::InventoryStore::Slot_Boots, }; bool enemyHasArmor = false; diff --git a/apps/openmw/mwmechanics/spellutil.cpp b/apps/openmw/mwmechanics/spellutil.cpp index f8a9eb3b2e..bfe15e820a 100644 --- a/apps/openmw/mwmechanics/spellutil.cpp +++ b/apps/openmw/mwmechanics/spellutil.cpp @@ -20,7 +20,7 @@ namespace MWMechanics static const std::array schoolSkillArray { ESM::Skill::Alteration, ESM::Skill::Conjuration, ESM::Skill::Destruction, - ESM::Skill::Illusion, ESM::Skill::Mysticism, ESM::Skill::Restoration + ESM::Skill::Illusion, ESM::Skill::Mysticism, ESM::Skill::Restoration, }; return schoolSkillArray.at(school); } diff --git a/apps/openmw/mwmechanics/summoning.cpp b/apps/openmw/mwmechanics/summoning.cpp index 20455e7350..f875d6759a 100644 --- a/apps/openmw/mwmechanics/summoning.cpp +++ b/apps/openmw/mwmechanics/summoning.cpp @@ -55,7 +55,7 @@ namespace MWMechanics {ESM::MagicEffect::SummonBear, "sMagicCreature02ID"}, {ESM::MagicEffect::SummonBonewolf, "sMagicCreature03ID"}, {ESM::MagicEffect::SummonCreature04, "sMagicCreature04ID"}, - {ESM::MagicEffect::SummonCreature05, "sMagicCreature05ID"} + {ESM::MagicEffect::SummonCreature05, "sMagicCreature05ID"}, }; auto it = summonMap.find(effectId); diff --git a/apps/openmw/mwworld/inventorystore.cpp b/apps/openmw/mwworld/inventorystore.cpp index bbb5ae5ce1..3a46e022fb 100644 --- a/apps/openmw/mwworld/inventorystore.cpp +++ b/apps/openmw/mwworld/inventorystore.cpp @@ -243,7 +243,7 @@ void MWWorld::InventoryStore::autoEquipWeapon (const MWWorld::Ptr& actor, TSlots ESM::Skill::Spear, ESM::Skill::ShortBlade, ESM::Skill::Marksman, - ESM::Skill::BluntWeapon + ESM::Skill::BluntWeapon, }; const size_t weaponSkillsLength = sizeof(weaponSkills) / sizeof(weaponSkills[0]); diff --git a/components/compiler/scanner.cpp b/components/compiler/scanner.cpp index 310b9fc411..8a8e6f565d 100644 --- a/components/compiler/scanner.cpp +++ b/components/compiler/scanner.cpp @@ -249,7 +249,7 @@ namespace Compiler "return", "messagebox", "set", "to", - nullptr + nullptr, }; bool Scanner::scanName (MultiChar& c, Parser& parser, bool& cont, std::string name) diff --git a/components/nif/niffile.cpp b/components/nif/niffile.cpp index de6f8ec900..3b06335552 100644 --- a/components/nif/niffile.cpp +++ b/components/nif/niffile.cpp @@ -196,7 +196,7 @@ void NIFFile::parse(Files::IStreamPtr&& stream) static const std::array verStrings = { "NetImmerse File Format", - "Gamebryo File Format" + "Gamebryo File Format", }; const bool supportedHeader = std::any_of(verStrings.begin(), verStrings.end(), [&] (const std::string& verString) { return head.compare(0, verString.size(), verString) == 0; }); @@ -210,7 +210,7 @@ void NIFFile::parse(Files::IStreamPtr&& stream) static const std::array supportedVers = { NIFStream::generateVersion(4,0,0,0), - VER_MW + VER_MW, }; const bool supportedVersion = std::find(supportedVers.begin(), supportedVers.end(), ver) != supportedVers.end(); if (!supportedVersion) diff --git a/components/stereo/frustum.cpp b/components/stereo/frustum.cpp index 7f8dbc952a..3aad4cad42 100644 --- a/components/stereo/frustum.cpp +++ b/components/stereo/frustum.cpp @@ -75,7 +75,7 @@ namespace Stereo {-1.0, 1.0, -1.0}, { 1.0, 1.0, -1.0}, { 1.0, 1.0, 1.0}, - {-1.0, 1.0, 1.0} + {-1.0, 1.0, 1.0}, }}; osg::Matrix slaveClipToView;