From 33fd0f2fd77c7eec0b0f3bcc80b59911d91f43f7 Mon Sep 17 00:00:00 2001 From: Jack Andersen Date: Mon, 30 Sep 2019 21:32:06 -1000 Subject: [PATCH] Switch to string compare operators --- specter/lib/FileBrowser.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/specter/lib/FileBrowser.cpp b/specter/lib/FileBrowser.cpp index 3ae19a947..b0424dcfe 100644 --- a/specter/lib/FileBrowser.cpp +++ b/specter/lib/FileBrowser.cpp @@ -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)