mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-09 23:34:20 +00:00
restructure to avoid warning when using allow special chars option
This commit is contained in:
parent
4f98d0ec2f
commit
fe16f518bd
1 changed files with 8 additions and 5 deletions
|
|
@ -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
|
||||
}
|
||||
#else
|
||||
static bool isDisallowedChar(juce_wchar c) noexcept
|
||||
{
|
||||
return CharPointer_ASCII(Traits::getDisallowedChars()).indexOf(c, false) >= 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
static bool containsOnlyAllowedPrintableASCIIChars (const String& string) noexcept
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue