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

@ -195,7 +195,7 @@ bool PropertiesFile::loadAsXml()
{
getAllProperties().set (name,
e->getFirstChildElement() != nullptr
? e->getFirstChildElement()->createDocument (String::empty, true)
? e->getFirstChildElement()->createDocument ("", true)
: e->getStringAttribute (PropertyFileConstants::valueAttribute));
}
}
@ -234,7 +234,7 @@ bool PropertiesFile::saveAsXml()
if (pl != nullptr && ! pl->isLocked())
return false; // locking failure..
if (doc.writeToFile (file, String::empty))
if (doc.writeToFile (file, String()))
{
needsWriting = false;
return true;

View file

@ -235,7 +235,7 @@ String UndoManager::getUndoDescription() const
if (const ActionSet* const s = getCurrentSet())
return s->name;
return String::empty;
return String();
}
String UndoManager::getRedoDescription() const
@ -243,7 +243,7 @@ String UndoManager::getRedoDescription() const
if (const ActionSet* const s = getNextSet())
return s->name;
return String::empty;
return String();
}
Time UndoManager::getTimeOfUndoTransaction() const

View file

@ -107,7 +107,7 @@ public:
@see beginNewTransaction
*/
bool perform (UndoableAction* action,
const String& actionName = String::empty);
const String& actionName = String());
/** Starts a new group of actions that together will be treated as a single transaction.
@ -118,7 +118,7 @@ public:
@param actionName a description of the transaction that is about to be
performed
*/
void beginNewTransaction (const String& actionName = String::empty);
void beginNewTransaction (const String& actionName = String());
/** Changes the name stored for the current transaction.

View file

@ -444,7 +444,7 @@ public:
}
else
{
output.writeString (String::empty);
output.writeString (String());
output.writeCompressedInt (0);
output.writeCompressedInt (0);
}
@ -962,7 +962,7 @@ ValueTree ValueTree::fromXml (const XmlElement& xml)
String ValueTree::toXmlString() const
{
const ScopedPointer<XmlElement> xml (createXml());
return xml != nullptr ? xml->createDocument (String::empty) : String::empty;
return xml != nullptr ? xml->createDocument ("") : String();
}
//==============================================================================