diff --git a/src/legacy.cpp b/src/legacy.cpp index a2efe07a3..9868951d7 100644 --- a/src/legacy.cpp +++ b/src/legacy.cpp @@ -50,11 +50,7 @@ void legacyColumnMap (std::string& name) // 2014-01-26: description_only --> description.desc Mapping removed // One-time initialization, on demand. - static std::map legacyMap; - if (! legacyMap.size ()) - { - legacyMap["priority."] = "priority"; - } + static std::map legacyMap {{"priority.", "priority"}}; // If a legacy column was used, complain about it, but modify it anyway. auto found = legacyMap.find (name); @@ -82,11 +78,7 @@ void legacySortColumnMap (std::string& name) // 2014-01-26: description_only --> description Mapping removed // One-time initialization, on demand. - static std::map legacyMap; - if (! legacyMap.size ()) - { - legacyMap["priority."] = "priority"; - } + static std::map legacyMap {{"priority.", "priority"}}; // If a legacy column was used, complain about it, but modify it anyway. auto found = legacyMap.find (name);