1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-11-23 17:30:17 +01:00

Replace comparisons against "" with empty()

This commit is contained in:
Paul Licameli
2019-03-14 13:04:37 -04:00
parent 804b6c8bd8
commit 50074f2cfe
29 changed files with 67 additions and 67 deletions

View File

@@ -658,27 +658,27 @@ void NumericConverter::ParseFormatString( const wxString & untranslatedFormat)
else
remainder.ToDouble(&mScalingFactor);
i = format.length()-1; // force break out of loop
if (delimStr != wxT(""))
if (!delimStr.empty())
handleDelim = true;
if (numStr != wxT(""))
if (!numStr.empty())
handleNum = true;
}
else if ((format[i] >= '0' && format[i] <='9') ||
format[i] == wxT('*') || format[i] == wxT('#')) {
numStr += format[i];
if (delimStr != wxT(""))
if (!delimStr.empty())
handleDelim = true;
}
else {
delimStr += format[i];
if (numStr != wxT(""))
if (!numStr.empty())
handleNum = true;
}
if (i == format.length() - 1) {
if (numStr != wxT(""))
if (!numStr.empty())
handleNum = true;
if (delimStr != wxT(""))
if (!delimStr.empty())
handleDelim = true;
}