From 355c313b9058f963f93d1efdf9bb614bf2c2870a Mon Sep 17 00:00:00 2001 From: Timothy Schoen Date: Wed, 8 Jan 2025 20:05:11 +0100 Subject: [PATCH] Windows compilation fix --- Source/Pd/Instance.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Pd/Instance.cpp b/Source/Pd/Instance.cpp index 5164c3579..ba4b48ec6 100644 --- a/Source/Pd/Instance.cpp +++ b/Source/Pd/Instance.cpp @@ -867,7 +867,7 @@ void Instance::createPanel(int const type, char const* snd, char const* location SmallArray atoms(files.size()); for (int i = 0; i < atoms.size(); i++) { - String pathname = files[i].getFullPathName(); + auto pathname = files[i].getFullPathName(); #if JUCE_WINDOWS pathname = pathname.replaceCharacter('\\', '/'); #endif @@ -894,7 +894,7 @@ void Instance::createPanel(int const type, char const* snd, char const* location } Dialogs::showSaveDialog([this, obj, callback](URL const& result) { - auto const pathname = result.getLocalFile().getFullPathName(); + auto pathname = result.getLocalFile().getFullPathName(); #if JUCE_WINDOWS pathname = pathname.replaceCharacter('\\', '/'); #endif