diff options
author | Garrett Brown <themagnificentmrb@gmail.com> | 2016-04-15 09:59:32 -0700 |
---|---|---|
committer | Garrett Brown <themagnificentmrb@gmail.com> | 2016-09-21 07:44:48 -0700 |
commit | c5459bcef58d97b2febb249ee970dd9c9afadd13 (patch) | |
tree | 7c6b7c0c81ebbad215f3fc856a208aeaeb5877e5 | |
parent | 0ea64c447f6e601319920c9e3d08e986d304ba82 (diff) |
[pictures] cosmetic: improve readability of start folder check
-rw-r--r-- | xbmc/windows/GUIMediaWindow.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/xbmc/windows/GUIMediaWindow.cpp b/xbmc/windows/GUIMediaWindow.cpp index 25fa402c77..a5645d36ad 100644 --- a/xbmc/windows/GUIMediaWindow.cpp +++ b/xbmc/windows/GUIMediaWindow.cpp @@ -1990,9 +1990,10 @@ bool CGUIMediaWindow::Filter(bool advanced /* = true */) std::string CGUIMediaWindow::GetStartFolder(const std::string &dir) { - std::string lower(dir); StringUtils::ToLower(lower); - if (lower == "$root" || lower == "root") + if (StringUtils::EqualsNoCase(dir, "$root") || + StringUtils::EqualsNoCase(dir, "root")) return ""; + return dir; } |