Windows build fixes
[WebKit-https.git] / WebKitTools / DumpRenderTree / win / WorkQueueItemWin.cpp
index 4113c9e29a7b615116c06f99dd590166cce233fc..aed18d1c54f9853d01dbcf9ac417ff1ab2e2a41f 100644 (file)
@@ -58,7 +58,7 @@ void LoadItem::invoke() const
         targetFrame = frame;
     else {
         BSTR targetBSTR = SysAllocString(targetString.c_str());
         targetFrame = frame;
     else {
         BSTR targetBSTR = SysAllocString(targetString.c_str());
-        bool failed = FAILED(frame->findFrameNamed(targetBSTR, &targetFrame));
+        bool failed = FAILED(frame->findFrameNamed(targetBSTR, targetFrame.adoptionPointer()));
         SysFreeString(targetBSTR);
         if (failed)
             return;
         SysFreeString(targetBSTR);
         if (failed)
             return;
@@ -81,18 +81,18 @@ void LoadItem::invoke() const
 void ReloadItem::invoke() const
 {
     COMPtr<IWebView> webView;
 void ReloadItem::invoke() const
 {
     COMPtr<IWebView> webView;
-    if (FAILED(frame->webView(&webView)))
+    if (FAILED(frame->webView(webView.adoptionPointer())))
         return;
 
     COMPtr<IWebIBActions> webActions;
         return;
 
     COMPtr<IWebIBActions> webActions;
-    if (SUCCEEDED(webView->QueryInterface(&webActions)))
+    if (SUCCEEDED(webView->QueryInterface(webActions.adoptionPointer())))
         webActions->reload(0);
 }
 
 void ScriptItem::invoke() const
 {
     COMPtr<IWebView> webView;
         webActions->reload(0);
 }
 
 void ScriptItem::invoke() const
 {
     COMPtr<IWebView> webView;
-    if (FAILED(frame->webView(&webView)))
+    if (FAILED(frame->webView(webView.adoptionPointer())))
         return;
 
     wstring scriptString = jsStringRefToWString(script());
         return;
 
     wstring scriptString = jsStringRefToWString(script());
@@ -107,7 +107,7 @@ void ScriptItem::invoke() const
 void BackForwardItem::invoke() const
 {
     COMPtr<IWebView> webView;
 void BackForwardItem::invoke() const
 {
     COMPtr<IWebView> webView;
-    if (FAILED(frame->webView(&webView)))
+    if (FAILED(frame->webView(webView.adoptionPointer())))
         return;
 
     BOOL result;
         return;
 
     BOOL result;
@@ -122,11 +122,11 @@ void BackForwardItem::invoke() const
     }
     
     COMPtr<IWebBackForwardList> bfList;
     }
     
     COMPtr<IWebBackForwardList> bfList;
-    if (FAILED(webView->backForwardList(&bfList)))
+    if (FAILED(webView->backForwardList(bfList.adoptionPointer())))
         return;
 
     COMPtr<IWebHistoryItem> item;
         return;
 
     COMPtr<IWebHistoryItem> item;
-    if (FAILED(bfList->itemAtIndex(m_howFar, &item)))
+    if (FAILED(bfList->itemAtIndex(m_howFar, item.adoptionPointer())))
         return;
 
     webView->goToBackForwardItem(item.get(), &result);
         return;
 
     webView->goToBackForwardItem(item.get(), &result);