mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-25 02:04:23 +00:00
Removed a few more uses of String::empty.
This commit is contained in:
parent
2623f4d1e1
commit
2edec00b55
46 changed files with 91 additions and 91 deletions
|
|
@ -72,7 +72,7 @@ bool File::isOnRemovableDrive() const
|
|||
|
||||
String File::getVersion() const
|
||||
{
|
||||
return String::empty; // xxx not yet implemented
|
||||
return String(); // xxx not yet implemented
|
||||
}
|
||||
|
||||
//==============================================================================
|
||||
|
|
|
|||
|
|
@ -309,7 +309,7 @@ private:
|
|||
{
|
||||
char c = 0;
|
||||
if (read (&c, 1) != 1)
|
||||
return String::empty;
|
||||
return String();
|
||||
|
||||
buffer.writeByte (c);
|
||||
|
||||
|
|
@ -324,7 +324,7 @@ private:
|
|||
if (header.startsWithIgnoreCase ("HTTP/"))
|
||||
return header;
|
||||
|
||||
return String::empty;
|
||||
return String();
|
||||
}
|
||||
|
||||
static void writeValueIfNotPresent (MemoryOutputStream& dest, const String& headers, const String& key, const String& value)
|
||||
|
|
@ -432,7 +432,7 @@ private:
|
|||
if (lines[i].startsWithIgnoreCase (itemName))
|
||||
return lines[i].substring (itemName.length()).trim();
|
||||
|
||||
return String::empty;
|
||||
return String();
|
||||
}
|
||||
|
||||
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (WebInputStream)
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ String SystemStats::getOperatingSystemName()
|
|||
|
||||
String SystemStats::getDeviceDescription()
|
||||
{
|
||||
return String::empty;
|
||||
return String();
|
||||
}
|
||||
|
||||
bool SystemStats::isOperatingSystem64Bit()
|
||||
|
|
@ -69,7 +69,7 @@ namespace LinuxStatsHelpers
|
|||
if (lines[i].startsWithIgnoreCase (key))
|
||||
return lines[i].fromFirstOccurrenceOf (":", false, false).trim();
|
||||
|
||||
return String::empty;
|
||||
return String();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -107,7 +107,7 @@ String SystemStats::getLogonName()
|
|||
if (struct passwd* const pw = getpwuid (getuid()))
|
||||
return CharPointer_UTF8 (pw->pw_name);
|
||||
|
||||
return String::empty;
|
||||
return String();
|
||||
}
|
||||
|
||||
String SystemStats::getFullUserName()
|
||||
|
|
@ -121,7 +121,7 @@ String SystemStats::getComputerName()
|
|||
if (gethostname (name, sizeof (name) - 1) == 0)
|
||||
return name;
|
||||
|
||||
return String::empty;
|
||||
return String();
|
||||
}
|
||||
|
||||
static String getLocaleValue (nl_item key)
|
||||
|
|
|
|||
|
|
@ -271,7 +271,7 @@ String File::getVersion() const
|
|||
return nsStringToJuce (name);
|
||||
}
|
||||
|
||||
return String::empty;
|
||||
return String();
|
||||
}
|
||||
|
||||
//==============================================================================
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@
|
|||
String String::fromCFString (CFStringRef cfString)
|
||||
{
|
||||
if (cfString == 0)
|
||||
return String::empty;
|
||||
return String();
|
||||
|
||||
CFRange range = { 0, CFStringGetLength (cfString) };
|
||||
HeapBlock <UniChar> u ((size_t) range.length + 1);
|
||||
|
|
|
|||
|
|
@ -124,7 +124,7 @@ SystemStats::OperatingSystemType SystemStats::getOperatingSystemType()
|
|||
return iOS;
|
||||
#else
|
||||
StringArray parts;
|
||||
parts.addTokens (getOSXVersion(), ".", String::empty);
|
||||
parts.addTokens (getOSXVersion(), ".", String());
|
||||
|
||||
jassert (parts[0].getIntValue() == 10);
|
||||
const int major = parts[1].getIntValue();
|
||||
|
|
@ -148,7 +148,7 @@ String SystemStats::getDeviceDescription()
|
|||
#if JUCE_IOS
|
||||
return nsStringToJuce ([[UIDevice currentDevice] model]);
|
||||
#else
|
||||
return String::empty;
|
||||
return String();
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
@ -182,7 +182,7 @@ String SystemStats::getCpuVendor()
|
|||
|
||||
return String (reinterpret_cast <const char*> (vendor), 12);
|
||||
#else
|
||||
return String::empty;
|
||||
return String();
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
@ -218,7 +218,7 @@ String SystemStats::getComputerName()
|
|||
if (gethostname (name, sizeof (name) - 1) == 0)
|
||||
return String (name).upToLastOccurrenceOf (".local", false, true);
|
||||
|
||||
return String::empty;
|
||||
return String();
|
||||
}
|
||||
|
||||
static String getLocaleValue (CFStringRef key)
|
||||
|
|
|
|||
|
|
@ -636,7 +636,7 @@ String File::getVolumeLabel() const
|
|||
}
|
||||
#endif
|
||||
|
||||
return String::empty;
|
||||
return String();
|
||||
}
|
||||
|
||||
int File::getVolumeSerialNumber() const
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue