Browse Source

Projucer: Fixed another unreachable code warning

tags/2021-05-28
ed 7 years ago
parent
commit
f57237df83
1 changed files with 8 additions and 11 deletions
  1. +8
    -11
      extras/Projucer/Source/Application/jucer_Application.cpp

+ 8
- 11
extras/Projucer/Source/Application/jucer_Application.cpp View File

@@ -725,10 +725,10 @@ static String getPlatformSpecificFileExtension()
return ".exe"; return ".exe";
#elif JUCE_LINUX #elif JUCE_LINUX
return {}; return {};
#endif
#else
jassertfalse; jassertfalse;
return {}; return {};
#endif
} }
static File getPlatformSpecificProjectFolder() static File getPlatformSpecificProjectFolder()
@@ -738,19 +738,16 @@ static File getPlatformSpecificProjectFolder()
if (! buildsFolder.exists()) if (! buildsFolder.exists())
return {}; return {};
String subDirectoryString;
#if JUCE_MAC #if JUCE_MAC
subDirectoryString = "MacOSX";
return buildsFolder.getChildFile ("MacOSX");
#elif JUCE_WINDOWS #elif JUCE_WINDOWS
subDirectoryString = "VisualStudio2017";
return buildsFolder.getChildFile ("VisualStudio2017");
#elif JUCE_LINUX #elif JUCE_LINUX
subDirectoryString = "LinuxMakefile";
return buildsFolder.getChildFile ("LinuxMakefile");
#else
jassertfalse;
return {};
#endif #endif
jassert (subDirectoryString != String());
return buildsFolder.getChildFile (subDirectoryString);
} }
static File tryToFindDemoRunnerExecutableInBuilds() static File tryToFindDemoRunnerExecutableInBuilds()


Loading…
Cancel
Save