Switch to string compare operators

This commit is contained in:
Jack Andersen 2019-09-30 21:32:06 -10:00
parent 33a6e07e7a
commit 33fd0f2fd7
1 changed files with 4 additions and 4 deletions

View File

@ -140,7 +140,7 @@ void FileBrowser::navigateToPath(hecl::SystemStringView path) {
for (const hecl::SystemString& d : m_comps) {
if (needSlash)
dir += _SYS_STR('/');
if (d.compare(_SYS_STR("/")))
if (d != _SYS_STR("/"))
needSlash = true;
dir += d;
}
@ -185,7 +185,7 @@ void FileBrowser::okActivated(bool viaButton) {
for (const hecl::SystemString& d : m_comps) {
if (needSlash)
path += _SYS_STR('/');
if (d.compare(_SYS_STR("/")))
if (d != _SYS_STR("/"))
needSlash = true;
path += d;
}
@ -295,7 +295,7 @@ void FileBrowser::cancelActivated() {
for (const hecl::SystemString& d : m_comps) {
if (needSlash)
path += _SYS_STR('/');
if (d.compare(_SYS_STR("/")))
if (d != _SYS_STR("/"))
needSlash = true;
path += d;
}
@ -320,7 +320,7 @@ void FileBrowser::pathButtonActivated(size_t idx) {
for (const hecl::SystemString& d : m_comps) {
if (needSlash)
dir += _SYS_STR('/');
if (d.compare(_SYS_STR("/")))
if (d != _SYS_STR("/"))
needSlash = true;
dir += d;
if (++i > idx)