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) {
|
for (const hecl::SystemString& d : m_comps) {
|
||||||
if (needSlash)
|
if (needSlash)
|
||||||
dir += _SYS_STR('/');
|
dir += _SYS_STR('/');
|
||||||
if (d.compare(_SYS_STR("/")))
|
if (d != _SYS_STR("/"))
|
||||||
needSlash = true;
|
needSlash = true;
|
||||||
dir += d;
|
dir += d;
|
||||||
}
|
}
|
||||||
|
@ -185,7 +185,7 @@ void FileBrowser::okActivated(bool viaButton) {
|
||||||
for (const hecl::SystemString& d : m_comps) {
|
for (const hecl::SystemString& d : m_comps) {
|
||||||
if (needSlash)
|
if (needSlash)
|
||||||
path += _SYS_STR('/');
|
path += _SYS_STR('/');
|
||||||
if (d.compare(_SYS_STR("/")))
|
if (d != _SYS_STR("/"))
|
||||||
needSlash = true;
|
needSlash = true;
|
||||||
path += d;
|
path += d;
|
||||||
}
|
}
|
||||||
|
@ -295,7 +295,7 @@ void FileBrowser::cancelActivated() {
|
||||||
for (const hecl::SystemString& d : m_comps) {
|
for (const hecl::SystemString& d : m_comps) {
|
||||||
if (needSlash)
|
if (needSlash)
|
||||||
path += _SYS_STR('/');
|
path += _SYS_STR('/');
|
||||||
if (d.compare(_SYS_STR("/")))
|
if (d != _SYS_STR("/"))
|
||||||
needSlash = true;
|
needSlash = true;
|
||||||
path += d;
|
path += d;
|
||||||
}
|
}
|
||||||
|
@ -320,7 +320,7 @@ void FileBrowser::pathButtonActivated(size_t idx) {
|
||||||
for (const hecl::SystemString& d : m_comps) {
|
for (const hecl::SystemString& d : m_comps) {
|
||||||
if (needSlash)
|
if (needSlash)
|
||||||
dir += _SYS_STR('/');
|
dir += _SYS_STR('/');
|
||||||
if (d.compare(_SYS_STR("/")))
|
if (d != _SYS_STR("/"))
|
||||||
needSlash = true;
|
needSlash = true;
|
||||||
dir += d;
|
dir += d;
|
||||||
if (++i > idx)
|
if (++i > idx)
|
||||||
|
|
Loading…
Reference in New Issue