From e5f659d04a347c41cbd71c918ff0f24448bd0bcc Mon Sep 17 00:00:00 2001 From: "darin@chromium.org" Date: Wed, 26 Nov 2008 21:43:43 +0000 Subject: Fix test failures caused by bad temporary variable. TBR=ph Review URL: http://codereview.chromium.org/12696 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6057 0039d316-1c4b-4281-b951-d872f2087c98 --- webkit/port/platform/MIMETypeRegistry.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'webkit/port') diff --git a/webkit/port/platform/MIMETypeRegistry.cpp b/webkit/port/platform/MIMETypeRegistry.cpp index 670b5c3..df0cd3d 100644 --- a/webkit/port/platform/MIMETypeRegistry.cpp +++ b/webkit/port/platform/MIMETypeRegistry.cpp @@ -84,9 +84,8 @@ bool MIMETypeRegistry::isSupportedImageMIMETypeForEncoding(const String& mimeTyp bool MIMETypeRegistry::isSupportedJavaScriptMIMEType(const String& mimeType) { - const char* data = mimeType.latin1().data(); return !mimeType.isEmpty() - && ChromiumBridge::isSupportedJavascriptMIMEType(data); + && ChromiumBridge::isSupportedJavascriptMIMEType(mimeType.latin1().data()); } bool MIMETypeRegistry::isSupportedImageResourceMIMEType(const String& mimeType) -- cgit v1.1