From 81e4f170d8ba4ccbcfa1e6c07bd0522dfc3b6e08 Mon Sep 17 00:00:00 2001 From: Thorbjørn Lindeijer Date: Thu, 22 Feb 2024 13:02:26 +0100 Subject: General code cleanups * Use default member initializers * Use range-based loops * Don't use 'else' after 'return' * Removed some unused includes * Construct empty strings with std::string() instead of "" * Clear strings with .clear() instead of assigning "" * Check whether strings are empty with .empty() instead of comparing to "" * Removed redundant initializations --- src/resources/attributes.cpp | 6 ------ 1 file changed, 6 deletions(-) (limited to 'src/resources/attributes.cpp') diff --git a/src/resources/attributes.cpp b/src/resources/attributes.cpp index 82871b2f..a9a3bd11 100644 --- a/src/resources/attributes.cpp +++ b/src/resources/attributes.cpp @@ -162,7 +162,6 @@ namespace Attributes { Attribute a; a.id = 16; a.name = _("Strength"); - a.description = ""; a.modifiable = true; a.scope = "character"; a.playerInfoId = -1; @@ -175,7 +174,6 @@ namespace Attributes { Attribute a; a.id = 17; a.name = _("Agility"); - a.description = ""; a.modifiable = true; a.scope = "character"; a.playerInfoId = -1; @@ -188,7 +186,6 @@ namespace Attributes { Attribute a; a.id = 18; a.name = _("Dexterity"); - a.description = ""; a.modifiable = true; a.scope = "character"; a.playerInfoId = -1; @@ -201,7 +198,6 @@ namespace Attributes { Attribute a; a.id = 19; a.name = _("Vitality"); - a.description = ""; a.modifiable = true; a.scope = "character"; a.playerInfoId = -1; @@ -214,7 +210,6 @@ namespace Attributes { Attribute a; a.id = 20; a.name = _("Intelligence"); - a.description = ""; a.modifiable = true; a.scope = "character"; a.playerInfoId = -1; @@ -227,7 +222,6 @@ namespace Attributes { Attribute a; a.id = 21; a.name = _("Willpower"); - a.description = ""; a.modifiable = true; a.scope = "character"; a.playerInfoId = -1; -- cgit v1.2.3-70-g09d2