From 50224491d4092afadac900cb187a523a685c04f3 Mon Sep 17 00:00:00 2001 From: Timur Doumler Date: Fri, 18 Mar 2016 16:00:30 +0000 Subject: [PATCH] OSCMessage, OSCBundle: renamed empty() to isEmpty() for consistency with all other JUCE containers. --- modules/juce_osc/osc/juce_OSCBundle.h | 2 +- modules/juce_osc/osc/juce_OSCMessage.cpp | 4 ++-- modules/juce_osc/osc/juce_OSCMessage.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/juce_osc/osc/juce_OSCBundle.h b/modules/juce_osc/osc/juce_OSCBundle.h index 3a601c68fa..86ce106044 100644 --- a/modules/juce_osc/osc/juce_OSCBundle.h +++ b/modules/juce_osc/osc/juce_OSCBundle.h @@ -103,7 +103,7 @@ public: int size() const noexcept { return elements.size(); } /** Returns true if the bundle contains no elements; false otherwise. */ - bool empty() const noexcept { return elements.empty(); } + bool isEmpty() const noexcept { return elements.isEmpty(); } /** Returns a reference to the OSCBundle element at index i in this bundle. This method does not check the range and results in undefined behavour diff --git a/modules/juce_osc/osc/juce_OSCMessage.cpp b/modules/juce_osc/osc/juce_OSCMessage.cpp index 619742fdbe..443d07f5c6 100644 --- a/modules/juce_osc/osc/juce_OSCMessage.cpp +++ b/modules/juce_osc/osc/juce_OSCMessage.cpp @@ -44,9 +44,9 @@ int OSCMessage::size() const noexcept return arguments.size(); } -bool OSCMessage::empty() const noexcept +bool OSCMessage::isEmpty() const noexcept { - return arguments.empty(); + return arguments.isEmpty(); } OSCArgument& OSCMessage::operator[] (const int i) const noexcept diff --git a/modules/juce_osc/osc/juce_OSCMessage.h b/modules/juce_osc/osc/juce_OSCMessage.h index 7c2f925117..e4a61cf007 100644 --- a/modules/juce_osc/osc/juce_OSCMessage.h +++ b/modules/juce_osc/osc/juce_OSCMessage.h @@ -86,7 +86,7 @@ public: int size() const noexcept; /** Returns true if the OSCMessage contains no OSCArgument objects; false otherwise. */ - bool empty() const noexcept; + bool isEmpty() const noexcept; /** Returns a reference to the OSCArgument at index i in the OSCMessage object. This method does not check the range and results in undefined behavour