1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Formatting: Remove double-dots from comments and other strings

This commit is contained in:
reuk 2025-11-17 19:00:05 +00:00
parent 82dc6d1c7e
commit 83e5264c86
No known key found for this signature in database
209 changed files with 508 additions and 509 deletions

View file

@ -182,7 +182,7 @@ namespace
setIsNegated = true;
break;
}
// else = special case: fall through to default and treat '!' as a non-special character.
// else = special case: fall through to default and treat '!' as a non-special character
JUCE_FALLTHROUGH
default:
@ -243,7 +243,7 @@ namespace
if (rangeEnd == ']')
{
set.add ('-'); // special case: '-' has no special meaning at the end.
set.add ('-'); // special case: '-' has no special meaning at the end
return true;
}
@ -719,7 +719,7 @@ public:
expect (matchOscPattern ("foo[1-8]bar", "foo8bar"));
expect (! matchOscPattern ("foo[1-8]bar", "foo9bar"));
// special case: '-' does not have a special meaning if it is at the end of the set.
// special case: '-' does not have a special meaning if it is at the end of the set
expect (matchOscPattern ("foo[abc-]bar", "fooabar"));
expect (matchOscPattern ("foo[abc-]bar", "foo-bar"));
@ -769,7 +769,7 @@ public:
expect (! matchOscPattern ("fooba[!r-z]foo", "foobasfoo"));
expect (matchOscPattern ("fooba[!r-z]foo", "foobaRfoo"));
// special case: '!' does not have a special meaning if it is not the first char in the set.
// special case: '!' does not have a special meaning if it is not the first char in the set
expect (matchOscPattern ("foo[ab!c]bar", "fooabar"));
expect (matchOscPattern ("foo[ab!c]bar", "foo!bar"));

View file

@ -169,7 +169,7 @@ namespace
const OSCType type = input.readByte();
if (type == 0)
break; // encountered null terminator. list is complete.
break; // encountered null terminator. list is complete
if (! OSCTypes::isSupportedType (type))
throw OSCFormatError ("OSC input stream format error: encountered unsupported type tag");
@ -422,7 +422,7 @@ struct OSCReceiver::Pimpl : private Thread,
{
CallbackMessage (OSCBundle::Element oscElement) : content (oscElement) {}
// the payload of the message. Can be either an OSCMessage or an OSCBundle.
// The payload of the message. Can be either an OSCMessage or an OSCBundle.
OSCBundle::Element content;
};
@ -947,7 +947,7 @@ public:
beginTest ("reading OSC messages (contents)");
{
// valid non-empty message.
// valid non-empty message
{
int32 testInt = -2015;
@ -1128,7 +1128,7 @@ public:
expect (! elements[2].getBundle().getTimeTag().isImmediately());
}
// invalid bundles.
// invalid bundles
{
uint8 data[] = {

View file

@ -144,7 +144,7 @@ public:
// in the raw time tag, the most significant 32 bits are seconds,
// so let's verify that the difference is right:
uint64 diff = laterTimeTagRaw - currentTimeTagRaw;
double acceptableErrorInSeconds = 0.000001; // definitely not audible anymore.
double acceptableErrorInSeconds = 0.000001; // definitely not audible anymore
expect ((float) diff / float (1ULL << 32) < deltaInSeconds + acceptableErrorInSeconds );
expect ((float) diff / float (1ULL << 32) > deltaInSeconds - acceptableErrorInSeconds );