Skip to content

Commit

Permalink
restructure to avoid warning when using allow special chars option
Browse files Browse the repository at this point in the history
  • Loading branch information
benkuper committed Jun 23, 2024
1 parent 4f98d0e commit fe16f51
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions modules/juce_osc/osc/juce_OSCAddress.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -283,14 +283,17 @@ namespace
return c >= ' ' && c <= '~';
}

static bool isDisallowedChar (juce_wchar c) noexcept
{
#if JUCE_ALLOW_SPECIAL_CHARS_IN_ADDRESS
static bool isDisallowedChar (juce_wchar) noexcept
{
return false;
}
#else
return CharPointer_ASCII( Traits::getDisallowedChars()).indexOf (c, false) >= 0;
#endif
static bool isDisallowedChar(juce_wchar c) noexcept
{
return CharPointer_ASCII(Traits::getDisallowedChars()).indexOf(c, false) >= 0;
}
#endif

static bool containsOnlyAllowedPrintableASCIIChars (const String& string) noexcept
{
Expand Down

0 comments on commit fe16f51

Please sign in to comment.