Skip to content

Commit

Permalink
Use string literal in AppInitSettings input map
Browse files Browse the repository at this point in the history
  • Loading branch information
LeFroid committed Oct 18, 2021
1 parent d9322f9 commit f36276d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/core/settings/AppInitSettings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ AppInitSettings::AppInitSettings() :
m_fileName(),
m_settings(),
m_settingKeyMap {
{ AppInitKey::ProcessModel, "ProcessModel" },
{ AppInitKey::DisableGPU, "DisableGPU" },
{ AppInitKey::CompletedInitialSetup, "CompletedInitialSetup" }
{ AppInitKey::ProcessModel, R"(ProcessModel)" },
{ AppInitKey::DisableGPU, R"(DisableGPU)" },
{ AppInitKey::CompletedInitialSetup, R"(CompletedInitialSetup)" }
}
{
load();
Expand Down
3 changes: 1 addition & 2 deletions src/core/settings/AppInitSettings.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#include <unordered_map>

/// Enumeration of the valid application initialization settings
enum class AppInitKey
enum class AppInitKey : int
{
/// Web Engine process model
ProcessModel,
Expand Down Expand Up @@ -71,7 +71,6 @@ class AppInitSettings

/// Map of valid keys to their corresponding string values
std::unordered_map<AppInitKey, std::string, AppInitKeyHash> m_settingKeyMap;
//QMap<BrowserSetting, QString> m_settingMap;
};

#endif // APPINITSETTINGS_H

0 comments on commit f36276d

Please sign in to comment.