1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-14 00:14:18 +00:00

Minor string literal tidy-ups.

This commit is contained in:
Julian Storer 2010-03-23 17:36:12 +00:00
parent f316faaa04
commit 841a6665bd
148 changed files with 2219 additions and 2273 deletions

View file

@ -116,7 +116,7 @@ bool juce_copyFile (const String& s, const String& d)
const StringArray juce_getFileSystemRoots()
{
StringArray s;
s.add (T("/"));
s.add ("/");
return s;
}
@ -166,7 +166,7 @@ bool File::isOnRemovableDrive() const
bool File::isHidden() const
{
return getFileName().startsWithChar (T('.'));
return getFileName().startsWithChar ('.');
}
//==============================================================================
@ -211,7 +211,7 @@ const File File::getSpecialLocation (const SpecialLocationType type)
if (! tmp.isDirectory())
{
tmp = T("/tmp");
tmp = "/tmp";
if (! tmp.isDirectory())
tmp = File::getCurrentWorkingDirectory();
@ -262,10 +262,10 @@ bool File::moveToTrash() const
if (! exists())
return true;
File trashCan (T("~/.Trash"));
File trashCan ("~/.Trash");
if (! trashCan.isDirectory())
trashCan = T("~/.local/share/Trash/files");
trashCan = "~/.local/share/Trash/files";
if (! trashCan.isDirectory())
return false;
@ -352,8 +352,8 @@ void* juce_findFileStart (const String& directory, const String& wildCard, Strin
ff->parentDir += File::separator;
ff->wildCard = wildCard;
if (wildCard == T("*.*"))
ff->wildCard = T("*");
if (wildCard == "*.*")
ff->wildCard = "*";
ff->dir = d;
@ -412,9 +412,9 @@ bool juce_launchFile (const String& fileName,
StringArray cmdLines;
for (int i = 0; i < numElementsInArray (browserNames); ++i)
cmdLines.add (String (browserNames[i]) + T(" ") + cmdString.trim().quoted());
cmdLines.add (String (browserNames[i]) + " " + cmdString.trim().quoted());
cmdString = cmdLines.joinIntoString (T(" || "));
cmdString = cmdLines.joinIntoString (" || ");
}
const char* const argv[4] = { "/bin/sh", "-c", cmdString.toUTF8(), 0 };