From 7972d8f44e4a4a8fbdb7018d92c6b4320e56ea91 Mon Sep 17 00:00:00 2001 From: Ben Kuper Date: Sat, 22 Jun 2024 20:28:26 +0200 Subject: [PATCH] respect text alignment --- modules/juce_osc/osc/juce_OSCArgument.cpp | 4 ++-- modules/juce_osc/osc/juce_OSCArgument.h | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/modules/juce_osc/osc/juce_OSCArgument.cpp b/modules/juce_osc/osc/juce_OSCArgument.cpp index 79d4c8a588..94f0a4ff4d 100644 --- a/modules/juce_osc/osc/juce_OSCArgument.cpp +++ b/modules/juce_osc/osc/juce_OSCArgument.cpp @@ -42,8 +42,8 @@ OSCArgument::OSCArgument (double v) : type (OSCTypes::double64),doub OSCArgument::OSCArgument (const String& s) : type (OSCTypes::string), stringValue (s) {} OSCArgument::OSCArgument (MemoryBlock b) : type (OSCTypes::blob), blob (std::move (b)) {} OSCArgument::OSCArgument (OSCColour c) : type (OSCTypes::colour), intValue ((int32) c.toInt32()) {} -OSCArgument::OSCArgument(bool b) : type (b ? OSCTypes::T : OSCTypes::F) {} -OSCArgument::OSCArgument(OSCType t) : type (t) {} //for nil and impulse +OSCArgument::OSCArgument (bool b) : type (b ? OSCTypes::T : OSCTypes::F) {} +OSCArgument::OSCArgument (OSCType t) : type (t) {} //for nil and impulse //============================================================================== diff --git a/modules/juce_osc/osc/juce_OSCArgument.h b/modules/juce_osc/osc/juce_OSCArgument.h index 55287e2645..cf1b10edf4 100644 --- a/modules/juce_osc/osc/juce_OSCArgument.h +++ b/modules/juce_osc/osc/juce_OSCArgument.h @@ -53,13 +53,13 @@ public: OSCArgument (int32 value); /** Constructs an OSCArgument with type int64 and a given value. */ - OSCArgument(int64 value); + OSCArgument (int64 value); /** Constructs an OSCArgument with type float32 and a given value. */ OSCArgument (float value); /** Constructs an OSCArgument with type double and a given value. */ - OSCArgument(double value); + OSCArgument (double value); /** Constructs an OSCArgument with type string and a given value */ OSCArgument (const String& value); @@ -76,12 +76,12 @@ public: OSCArgument (OSCColour colour); /** Constructs an OSCArgument with type T or F depending on the given boolean value */ - OSCArgument(bool value); + OSCArgument (bool value); /** Constructs an OSCArgument with the given OSC type tag. This constructor is intended for creating OSCArgument objects with type nil or impulse. */ - OSCArgument(OSCType type); + OSCArgument (OSCType type); /** Returns the type of the OSCArgument as an OSCType. OSCType is a char type, and its value will be the OSC type tag of the type. @@ -98,7 +98,7 @@ public: bool isFloat32() const noexcept { return type == OSCTypes::float32; } /** Returns whether the type of the OSCArgument is double. */ - bool isDouble() const noexcept { return type == OSCTypes::double64; } + bool isDouble() const noexcept { return type == OSCTypes::double64; } /** Returns whether the type of the OSCArgument is string. */ bool isString() const noexcept { return type == OSCTypes::string; } @@ -116,7 +116,7 @@ public: bool isImpulse() const noexcept { return type == OSCTypes::impulse; } /** Returns whether the type of the OSCArgument is T or F. */ - bool isBool() const noexcept { return type == OSCTypes::T || type == OSCTypes::F; } + bool isBool() const noexcept { return type == OSCTypes::T || type == OSCTypes::F; } /** Returns the value of the OSCArgument as an int32. If the type of the OSCArgument is not int32, the behaviour is undefined.