Browse Source

Fixed various compile errors due to rename of empty() to isEmpty().

tags/2021-05-28
Timur Doumler 9 years ago
parent
commit
74447991ec
4 changed files with 5 additions and 5 deletions
  1. +1
    -1
      examples/NetworkGraphicsDemo/Source/MasterComponent.h
  2. +1
    -1
      examples/NetworkGraphicsDemo/Source/SlaveComponent.h
  3. +1
    -1
      examples/OSCMonitor/Source/OSCLogListBox.h
  4. +2
    -2
      modules/juce_audio_basics/mpe/juce_MPEInstrument.cpp

+ 1
- 1
examples/NetworkGraphicsDemo/Source/MasterComponent.h View File

@@ -387,7 +387,7 @@ private:
void newClientOSCMessageReceived (const OSCMessage& message)
{
if (message.empty() || ! message[0].isString())
if (message.isEmpty() || ! message[0].isString())
return;
StringArray tokens = StringArray::fromTokens (message[0].getString(), ":", "");


+ 1
- 1
examples/NetworkGraphicsDemo/Source/SlaveComponent.h View File

@@ -103,7 +103,7 @@ private:
void canvasStateOSCMessageReceived (const OSCMessage& message)
{
if (message.empty() || ! message[0].isBlob())
if (message.isEmpty() || ! message[0].isBlob())
return;
if (packetiser.appendIncomingBlock (message[0].getBlob()))


+ 1
- 1
examples/OSCMonitor/Source/OSCLogListBox.h View File

@@ -78,7 +78,7 @@ public:
+ String (message.size())
+ " argument(s)");
if (! message.empty())
if (! message.isEmpty())
{
for (OSCArgument* arg = message.begin(); arg != message.end(); ++arg)
addOSCMessageArgument (*arg, level + 1);


+ 2
- 2
modules/juce_audio_basics/mpe/juce_MPEInstrument.cpp View File

@@ -324,7 +324,7 @@ void MPEInstrument::noteOff (int midiChannel,
int midiNoteNumber,
MPEValue midiNoteOffVelocity)
{
if (notes.empty() || ! isNoteChannel (midiChannel))
if (notes.isEmpty() || ! isNoteChannel (midiChannel))
return;
const ScopedLock sl (lock);
@@ -375,7 +375,7 @@ void MPEInstrument::updateDimension (int midiChannel, MPEDimension& dimension, M
{
dimension.lastValueReceivedOnChannel[midiChannel - 1] = value;
if (notes.empty())
if (notes.isEmpty())
return;
if (MPEZone* zone = zoneLayout.getZoneByMasterChannel (midiChannel))


Loading…
Cancel
Save