[BlackBerry]Cleanup WTF string in platform/network/blackberry
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 27 Mar 2012 14:32:49 +0000 (14:32 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 27 Mar 2012 14:32:49 +0000 (14:32 +0000)
https://bugs.webkit.org/show_bug.cgi?id=82005

Patch by Jason Liu <jason.liu@torchmobile.com.cn> on 2012-03-27
Reviewed by Rob Buis.

No new tests. Just replace WTF::String with String.

* platform/network/blackberry/NetworkJob.cpp:
(WebCore::NetworkJob::handleNotifyDataReceived):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@112264 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/platform/network/blackberry/NetworkJob.cpp

index 10ee1ca..9d964d7 100644 (file)
@@ -1,3 +1,15 @@
+2012-03-27  Jason Liu  <jason.liu@torchmobile.com.cn>
+
+        [BlackBerry]Cleanup WTF string in platform/network/blackberry
+        https://bugs.webkit.org/show_bug.cgi?id=82005
+
+        Reviewed by Rob Buis.
+
+        No new tests. Just replace WTF::String with String.
+
+        * platform/network/blackberry/NetworkJob.cpp:
+        (WebCore::NetworkJob::handleNotifyDataReceived):
+
 2012-03-27  Alexander Pavlov  <apavlov@chromium.org>
 
         Web Inspector: Enable "number" parameters in the web inspector protocol methods
index e37e940..4980de0 100644 (file)
@@ -394,9 +394,9 @@ void NetworkJob::handleNotifyDataReceived(const char* buf, size_t len)
         // is on a file system if it has a MIME mappable file extension.
         // The file extension is likely to be correct.
         if (m_isFile) {
-            WTF::String urlFilename = m_response.url().lastPathComponent();
+            String urlFilename = m_response.url().lastPathComponent();
             size_t pos = urlFilename.reverseFind('.');
-            if (pos != WTF::notFound) {
+            if (pos != notFound) {
                 String extension = urlFilename.substring(pos + 1);
                 String mimeType = MIMETypeRegistry::getMIMETypeForExtension(extension);
                 if (!mimeType.isEmpty())