diff options
author | Voyager1 <voyager@xbmc.org> | 2013-07-09 07:34:17 +0200 |
---|---|---|
committer | Voyager1 <voyager@xbmc.org> | 2013-07-09 07:34:17 +0200 |
commit | 76ae4cd5305eba442889f4873914b695d2bbccfe (patch) | |
tree | 5f81674eba3319169bf98491f557e2d45e9af116 | |
parent | e2b39b2c8ec58f0828714b39f491ecb30c2159b2 (diff) |
[cosmetics] use CompareNoCase explicitly instead of Equals - after d25d6ef73a17c7044b819c998630346a522ca972
-rw-r--r-- | xbmc/filesystem/IDirectory.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/xbmc/filesystem/IDirectory.cpp b/xbmc/filesystem/IDirectory.cpp index 330d787caf..350a025afc 100644 --- a/xbmc/filesystem/IDirectory.cpp +++ b/xbmc/filesystem/IDirectory.cpp @@ -61,9 +61,9 @@ bool IDirectory::IsAllowed(const CStdString& strFile) const CStdString fileName = URIUtils::GetFileName(strFile); // Allow filenames of the form video_ts.ifo or vts_##_0.ifo - return fileName.Equals("video_ts.ifo") || - (fileName.length() == 12 && fileName.Left(4).Equals("vts_") && - fileName.Right(6).Equals("_0.ifo")); + return fileName.CompareNoCase("video_ts.ifo") == 0 || + (fileName.length() == 12 && fileName.Left(4).CompareNoCase("vts_") == 0 && + fileName.Right(6).CompareNoCase("_0.ifo") == 0); } if (URIUtils::HasExtension(strFile, ".dat")) @@ -73,8 +73,8 @@ bool IDirectory::IsAllowed(const CStdString& strFile) const // Allow filenames of the form AVSEQ##(#).DAT, ITEM###(#).DAT // and MUSIC##(#).DAT return (fileName.length() == 11 || fileName.length() == 12) && - (fileName.Left(5).Equals("AVSEQ") || fileName.Left(5).Equals("MUSIC") || - fileName.Left(4).Equals("ITEM")); + (fileName.Left(5).CompareNoCase("AVSEQ") == 0 || fileName.Left(5).CompareNoCase("MUSIC") == 0 || + fileName.Left(4).CompareNoCase("ITEM") == 0); } return true; |