Skip to content

Commit

Permalink
Windows compilation fix
Browse files Browse the repository at this point in the history
  • Loading branch information
timothyschoen committed Jan 8, 2025
1 parent 9649585 commit 355c313
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/Pd/Instance.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -867,7 +867,7 @@ void Instance::createPanel(int const type, char const* snd, char const* location
SmallArray<t_atom> 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
Expand All @@ -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
Expand Down

0 comments on commit 355c313

Please sign in to comment.