1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-27 02:20:05 +00:00

Removed a few more uses of String::empty.

This commit is contained in:
jules 2013-12-01 23:28:31 +00:00
parent 2623f4d1e1
commit 2edec00b55
46 changed files with 91 additions and 91 deletions

View file

@ -99,13 +99,13 @@ namespace CustomTypefaceHelpers
//==============================================================================
CustomTypeface::CustomTypeface()
: Typeface (String::empty, String::empty)
: Typeface (String(), String())
{
clear();
}
CustomTypeface::CustomTypeface (InputStream& serialisedTypefaceStream)
: Typeface (String::empty, String::empty)
: Typeface (String(), String())
{
clear();

View file

@ -865,7 +865,7 @@ public:
static Rectangle fromString (StringRef stringVersion)
{
StringArray toks;
toks.addTokens (stringVersion.text.findEndOfWhitespace(), ",; \t\r\n", String::empty);
toks.addTokens (stringVersion.text.findEndOfWhitespace(), ",; \t\r\n", "");
return Rectangle (parseIntAfterSpace (toks[0]),
parseIntAfterSpace (toks[1]),

View file

@ -291,7 +291,7 @@ private:
file = getFontFile (family, "Regular");
if (! file.exists())
file = getFontFile (family, String::empty);
file = getFontFile (family, String());
return file;
}

View file

@ -111,7 +111,7 @@ public:
const KnownTypeface* ftFace = matchTypeface (fontName, fontStyle);
if (ftFace == nullptr) ftFace = matchTypeface (fontName, "Regular");
if (ftFace == nullptr) ftFace = matchTypeface (fontName, String::empty);
if (ftFace == nullptr) ftFace = matchTypeface (fontName, String());
if (ftFace != nullptr)
{

View file

@ -43,7 +43,7 @@ StringArray FTTypefaceList::getDefaultFontDirectories()
{
if (e->getStringAttribute ("prefix") == "xdg")
{
String xdgDataHome (SystemStats::getEnvironmentVariable ("XDG_DATA_HOME", String::empty));
String xdgDataHome (SystemStats::getEnvironmentVariable ("XDG_DATA_HOME", String()));
if (xdgDataHome.trimStart().isEmpty())
xdgDataHome = "~/.local/share";