1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-31 03:00: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

@ -127,7 +127,7 @@ String ApplicationCommandManager::getNameOfCommand (const CommandID commandID) c
if (const ApplicationCommandInfo* const ci = getCommandForID (commandID))
return ci->shortName;
return String::empty;
return String();
}
String ApplicationCommandManager::getDescriptionOfCommand (const CommandID commandID) const noexcept
@ -136,7 +136,7 @@ String ApplicationCommandManager::getDescriptionOfCommand (const CommandID comma
return ci->description.isNotEmpty() ? ci->description
: ci->shortName;
return String::empty;
return String();
}
StringArray ApplicationCommandManager::getCommandCategories() const

View file

@ -944,7 +944,7 @@ private:
}
String getStyleAttribute (const XmlPath& xml, const String& attributeName,
const String& defaultValue = String::empty) const
const String& defaultValue = String()) const
{
if (xml->hasAttribute (attributeName))
return xml->getStringAttribute (attributeName, defaultValue);
@ -953,7 +953,7 @@ private:
if (styleAtt.isNotEmpty())
{
const String value (getAttributeFromStyleList (styleAtt, attributeName, String::empty));
const String value (getAttributeFromStyleList (styleAtt, attributeName, String()));
if (value.isNotEmpty())
return value;
@ -991,7 +991,7 @@ private:
if (xml.parent != nullptr)
return getInheritedAttribute (*xml.parent, attributeName);
return String::empty;
return String();
}
//==============================================================================
@ -1144,7 +1144,7 @@ private:
StringArray tokens;
tokens.addTokens (t.fromFirstOccurrenceOf ("(", false, false)
.upToFirstOccurrenceOf (")", false, false),
", ", String::empty);
", ", "");
tokens.removeEmptyStrings (true);

View file

@ -439,7 +439,7 @@ String SystemClipboard::getTextFromClipboard()
{
NSString* text = [[NSPasteboard generalPasteboard] stringForType: NSStringPboardType];
return text == nil ? String::empty
return text == nil ? String()
: nsStringToJuce (text);
}

View file

@ -440,7 +440,7 @@ String TableHeaderComponent::toString() const
e->setAttribute ("width", ci->width);
}
return doc.createDocument (String::empty, true, false);
return doc.createDocument ("", true, false);
}
void TableHeaderComponent::restoreFromString (const String& storedVersion)