(Windows) Fixed a MinGW compile error.

This commit is contained in:
Leon Styhre 2023-07-27 16:42:58 +02:00
parent 44fbfbb93b
commit 345906a97f

View file

@ -714,7 +714,7 @@ void GuiOrphanedDataCleanup::cleanupCollections()
std::ifstream configFileSource; std::ifstream configFileSource;
#if defined(_WIN64) #if defined(_WIN64)
configFileSource.open(Utils::String::stringToWideString(collectionFile)); configFileSource.open(Utils::String::stringToWideString(collectionFile).c_str());
#else #else
configFileSource.open(collectionFile); configFileSource.open(collectionFile);
#endif #endif
@ -794,7 +794,7 @@ void GuiOrphanedDataCleanup::cleanupCollections()
else { else {
std::ofstream configFileTarget; std::ofstream configFileTarget;
#if defined(_WIN64) #if defined(_WIN64)
configFileTarget.open(Utils::String::stringToWideString(tempFile)); configFileTarget.open(Utils::String::stringToWideString(tempFile).c_str());
#else #else
configFileTarget.open(tempFile); configFileTarget.open(tempFile);
#endif #endif