summaryrefslogtreecommitdiff
path: root/Source/WebKit/win/WebHistory.cpp
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@digia.com>2012-11-07 11:22:47 +0100
committerSimon Hausmann <simon.hausmann@digia.com>2012-11-07 11:22:47 +0100
commitcfd86b747d32ac22246a1aa908eaa720c63a88c1 (patch)
tree24d68c6f61c464ecba1e05670b80390ea3b0e50c /Source/WebKit/win/WebHistory.cpp
parent69d7c744c9de19d152dbe2d8e46eb7dfd4511d1a (diff)
downloadqtwebkit-cfd86b747d32ac22246a1aa908eaa720c63a88c1.tar.gz
Imported WebKit commit 20271caf2e2c016d5cef40184cddeefeac4f1876 (http://svn.webkit.org/repository/webkit/trunk@133733)
New snapshot that contains all previous fixes as well as build fix for latest QtMultimedia API changes.
Diffstat (limited to 'Source/WebKit/win/WebHistory.cpp')
-rw-r--r--Source/WebKit/win/WebHistory.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/Source/WebKit/win/WebHistory.cpp b/Source/WebKit/win/WebHistory.cpp
index 1f7a572c3..a7310b80b 100644
--- a/Source/WebKit/win/WebHistory.cpp
+++ b/Source/WebKit/win/WebHistory.cpp
@@ -693,9 +693,9 @@ HRESULT WebHistory::addItem(IWebHistoryItem* entry, bool discardDuplicate, bool*
void WebHistory::visitedURL(const KURL& url, const String& title, const String& httpMethod, bool wasFailure, bool increaseVisitCount)
{
- RetainPtr<CFStringRef> urlString(AdoptCF, url.string().createCFString());
+ RetainPtr<CFStringRef> urlString = url.string().createCFString();
- IWebHistoryItem* entry = (IWebHistoryItem*) CFDictionaryGetValue(m_entriesByURL.get(), urlString.get());
+ IWebHistoryItem* entry = (IWebHistoryItem*)CFDictionaryGetValue(m_entriesByURL.get(), urlString.get());
if (entry) {
COMPtr<IWebHistoryItemPrivate> entryPrivate(Query, entry);
if (!entryPrivate)
@@ -786,11 +786,10 @@ HRESULT WebHistory::removeItemForURLString(CFStringRef urlString)
COMPtr<IWebHistoryItem> WebHistory::itemForURLString(const String& urlString) const
{
- RetainPtr<CFStringRef> urlCFString(AdoptCF, urlString.createCFString());
- if (!urlCFString)
+ if (!urlString)
return 0;
COMPtr<IWebHistoryItem> item;
- if (FAILED(itemForURLString(urlCFString.get(), &item)))
+ if (FAILED(itemForURLString(urlString.createCFString().get(), &item)))
return 0;
return item;
}