mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-22 01:34:21 +00:00
Minor string literal tidy-ups.
This commit is contained in:
parent
f316faaa04
commit
841a6665bd
148 changed files with 2219 additions and 2273 deletions
|
|
@ -396,16 +396,16 @@ int StringArray::addLines (const String& sourceText)
|
|||
|
||||
while (*text != 0)
|
||||
{
|
||||
if (*text == T('\r'))
|
||||
if (*text == '\r')
|
||||
{
|
||||
++text;
|
||||
if (*text == T('\n'))
|
||||
if (*text == '\n')
|
||||
++text;
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
if (*text == T('\n'))
|
||||
if (*text == '\n')
|
||||
{
|
||||
++text;
|
||||
break;
|
||||
|
|
@ -415,10 +415,10 @@ int StringArray::addLines (const String& sourceText)
|
|||
}
|
||||
|
||||
const juce_wchar* endOfLine = text;
|
||||
if (endOfLine > startOfLine && (*(endOfLine - 1) == T('\r') || *(endOfLine - 1) == T('\n')))
|
||||
if (endOfLine > startOfLine && (*(endOfLine - 1) == '\r' || *(endOfLine - 1) == '\n'))
|
||||
--endOfLine;
|
||||
|
||||
if (endOfLine > startOfLine && (*(endOfLine - 1) == T('\r') || *(endOfLine - 1) == T('\n')))
|
||||
if (endOfLine > startOfLine && (*(endOfLine - 1) == '\r' || *(endOfLine - 1) == '\n'))
|
||||
--endOfLine;
|
||||
|
||||
add (String (startOfLine, jmax (0, (int) (endOfLine - startOfLine))));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue