diff options
Diffstat (limited to 'Source/WebKit/win/WebLocalizableStrings.cpp')
-rw-r--r-- | Source/WebKit/win/WebLocalizableStrings.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/Source/WebKit/win/WebLocalizableStrings.cpp b/Source/WebKit/win/WebLocalizableStrings.cpp index fd61a01fb..dfb714b46 100644 --- a/Source/WebKit/win/WebLocalizableStrings.cpp +++ b/Source/WebKit/win/WebLocalizableStrings.cpp @@ -132,12 +132,10 @@ static CFBundleRef createWebKitBundle() return 0; String bundlePathString(pathStr); - CFStringRef bundlePathCFString = bundlePathString.createCFString(); - if (!bundlePathCFString) + if (!bundlePathString) return 0; - CFURLRef bundleURLRef = CFURLCreateWithFileSystemPath(0, bundlePathCFString, kCFURLWindowsPathStyle, true); - CFRelease(bundlePathCFString); + CFURLRef bundleURLRef = CFURLCreateWithFileSystemPath(0, bundlePathString.createCFString().get(), kCFURLWindowsPathStyle, true); if (!bundleURLRef) return 0; @@ -168,8 +166,7 @@ static CFStringRef copyLocalizedStringFromBundle(WebLocalizableStringsBundle* st if (!bundle) return notFound; - RetainPtr<CFStringRef> keyString(AdoptCF, key.createCFString()); - CFStringRef result = CFCopyLocalizedStringWithDefaultValue(keyString.get(), 0, bundle, notFound, 0); + CFStringRef result = CFCopyLocalizedStringWithDefaultValue(key.createCFString().get(), 0, bundle, notFound, 0); ASSERT_WITH_MESSAGE(result != notFound, "could not find localizable string %s in bundle", key); return result; |