mirror of https://github.com/AxioDL/metaforce.git
Switch to string compare operators
This commit is contained in:
parent
33a6e07e7a
commit
33fd0f2fd7
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue