[haiku-webkit-commits] r313 - webkit/trunk/WebCore/platform/haiku

  • From: webkit@xxxxxxxxxxxxxxx
  • To: haiku-webkit-commits@xxxxxxxxxxxxx
  • Date: Mon, 15 Mar 2010 16:52:30 +0000

Author: stippi
Date: Mon Mar 15 16:52:29 2010
New Revision: 313
URL: http://mmlr.dyndns.org/changeset/313

Log:
Style cleanup, removed outdated TODOs.

Modified:
   webkit/trunk/WebCore/platform/haiku/MIMETypeRegistryHaiku.cpp

Modified: webkit/trunk/WebCore/platform/haiku/MIMETypeRegistryHaiku.cpp
==============================================================================
--- webkit/trunk/WebCore/platform/haiku/MIMETypeRegistryHaiku.cpp       Mon Mar 
15 16:49:35 2010        (r312)
+++ webkit/trunk/WebCore/platform/haiku/MIMETypeRegistryHaiku.cpp       Mon Mar 
15 16:52:29 2010        (r313)
@@ -34,12 +34,13 @@
 #include <MimeType.h>
 
 namespace WebCore {
+
 struct ExtensionMap {
     const char* extension;
     const char* mimeType;
 };
 
-static const ExtensionMap extensionMap[] = {
+static const ExtensionMap sExtensionMap[] = {
     { "bmp", "image/bmp" },
     { "gif", "image/gif" },
     { "html", "text/html" },
@@ -60,13 +61,12 @@
     { 0, 0 }
 };
 
-// FIXME: Use the Haiku MIME registry
-String MIMETypeRegistry::getMIMETypeForExtension(const String &ext)
+String MIMETypeRegistry::getMIMETypeForExtension(const String& ext)
 {
     String str = ext.lower();
 
-    // Try system built-in types
-    const ExtensionMap *extMap = extensionMap;
+    // Try built-in types
+    const ExtensionMap* extMap = sExtensionMap;
     while (extMap->extension) {
         if (str == extMap->extension)
             return extMap->mimeType;
@@ -84,5 +84,6 @@
     // unknown
     return String();
 }
+
 } // namespace WebCore
 

Other related posts:

  • » [haiku-webkit-commits] r313 - webkit/trunk/WebCore/platform/haiku - webkit