Browse Source

Fixup some bits on the mini juce

tags/1.9.8
falkTX 7 years ago
parent
commit
f29d6336fe
5 changed files with 0 additions and 25 deletions
  1. +0
    -4
      source/modules/juce_audio_graph/containers/juce_Variant.cpp
  2. +0
    -4
      source/modules/juce_audio_graph/files/juce_File.cpp
  3. +0
    -9
      source/modules/juce_audio_graph/files/juce_File.h
  4. +0
    -4
      source/modules/juce_audio_graph/text/juce_StringArray.cpp
  5. +0
    -4
      source/modules/juce_audio_graph/xml/juce_XmlElement.cpp

+ 0
- 4
source/modules/juce_audio_graph/containers/juce_Variant.cpp View File

@@ -439,10 +439,6 @@ var::var() noexcept : type (&VariantType_Void::instance) {}
var::var (const VariantType& t) noexcept : type (&t) {}
var::~var() noexcept { type->cleanUp (value); }
#if JUCE_ALLOW_STATIC_NULL_VARIABLES
const var var::null;
#endif
//==============================================================================
var::var (const var& valueToCopy) : type (valueToCopy.type)
{


+ 0
- 4
source/modules/juce_audio_graph/files/juce_File.cpp View File

@@ -70,10 +70,6 @@ File& File::operator= (File&& other) noexcept
}
#endif
#if JUCE_ALLOW_STATIC_NULL_VARIABLES
const File File::nonexistent;
#endif
//==============================================================================
static String removeEllipsis (const String& path)
{


+ 0
- 9
source/modules/juce_audio_graph/files/juce_File.h View File

@@ -95,15 +95,6 @@ public:
File& operator= (File&&) noexcept;
#endif
//==============================================================================
#if JUCE_ALLOW_STATIC_NULL_VARIABLES
/** This static constant is used for referring to an 'invalid' file.
Bear in mind that you should avoid this kind of static variable, and always prefer
to use File() or {} if you need a default-constructed File object.
*/
static const File nonexistent;
#endif
//==============================================================================
/** Checks whether the file actually exists.


+ 0
- 4
source/modules/juce_audio_graph/text/juce_StringArray.cpp View File

@@ -119,12 +119,8 @@ const String& StringArray::operator[] (const int index) const noexcept
if (isPositiveAndBelow (index, strings.size()))
return strings.getReference (index);
#if JUCE_ALLOW_STATIC_NULL_VARIABLES
return String::empty;
#else
static String empty;
return empty;
#endif
}
String& StringArray::getReference (const int index) noexcept


+ 0
- 4
source/modules/juce_audio_graph/xml/juce_XmlElement.cpp View File

@@ -466,12 +466,8 @@ int XmlElement::getNumAttributes() const noexcept
static const String& getEmptyStringRef() noexcept
{
#if JUCE_ALLOW_STATIC_NULL_VARIABLES
return String::empty;
#else
static String empty;
return empty;
#endif
}
const String& XmlElement::getAttributeName (const int index) const noexcept


Loading…
Cancel
Save