From 5afe88df2538274859a162ffd63ed52118e80c19 Mon Sep 17 00:00:00 2001 From: Thorbjørn Lindeijer Date: Fri, 26 Jan 2024 16:07:54 +0100 Subject: Apply C++11 fixits modernize-use-auto modernize-use-nullptr modernize-use-override modernize-use-using --- src/defaults.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/defaults.cpp') diff --git a/src/defaults.cpp b/src/defaults.cpp index 2cd81cd2..99b9d6a0 100644 --- a/src/defaults.cpp +++ b/src/defaults.cpp @@ -63,7 +63,7 @@ VariableData* createData(bool defData) DefaultsData* getConfigDefaults() { - DefaultsData* configData = new DefaultsData; + auto* configData = new DefaultsData; // Init main config defaults AddDEF(configData, "OverlayDetail", 2); AddDEF(configData, "speechBubblecolor", "000000"); @@ -125,7 +125,7 @@ DefaultsData* getConfigDefaults() DefaultsData* getBrandingDefaults() { - DefaultsData* brandingData = new DefaultsData; + auto* brandingData = new DefaultsData; // Init config defaults AddDEF(brandingData, "wallpapersPath", ""); AddDEF(brandingData, "wallpaperFile", ""); @@ -150,7 +150,7 @@ DefaultsData* getBrandingDefaults() DefaultsData* getPathsDefaults() { - DefaultsData *pathsData = new DefaultsData; + auto *pathsData = new DefaultsData; // Init paths.xml defaults AddDEF(pathsData, "itemIcons", "graphics/items/"); AddDEF(pathsData, "unknownItemFile", "unknown-item.png"); -- cgit v1.2.3-70-g09d2