[cosmetics] use CompareNoCase explicitly instead of Equals - after d25d6ef73a17c7044b...
authorVoyager1 <voyager@xbmc.org>
Tue, 9 Jul 2013 05:34:17 +0000 (07:34 +0200)
committerVoyager1 <voyager@xbmc.org>
Tue, 9 Jul 2013 05:34:17 +0000 (07:34 +0200)
xbmc/filesystem/IDirectory.cpp

index 330d787..350a025 100644 (file)
@@ -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;