From 345906a97f77925a5461353fdd228c037dcec86e Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Thu, 27 Jul 2023 16:42:58 +0200 Subject: [PATCH] (Windows) Fixed a MinGW compile error. --- es-app/src/guis/GuiOrphanedDataCleanup.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/es-app/src/guis/GuiOrphanedDataCleanup.cpp b/es-app/src/guis/GuiOrphanedDataCleanup.cpp index 4919b5ab2..09b442b65 100644 --- a/es-app/src/guis/GuiOrphanedDataCleanup.cpp +++ b/es-app/src/guis/GuiOrphanedDataCleanup.cpp @@ -714,7 +714,7 @@ void GuiOrphanedDataCleanup::cleanupCollections() std::ifstream configFileSource; #if defined(_WIN64) - configFileSource.open(Utils::String::stringToWideString(collectionFile)); + configFileSource.open(Utils::String::stringToWideString(collectionFile).c_str()); #else configFileSource.open(collectionFile); #endif @@ -794,7 +794,7 @@ void GuiOrphanedDataCleanup::cleanupCollections() else { std::ofstream configFileTarget; #if defined(_WIN64) - configFileTarget.open(Utils::String::stringToWideString(tempFile)); + configFileTarget.open(Utils::String::stringToWideString(tempFile).c_str()); #else configFileTarget.open(tempFile); #endif