Replace WTF::move with WTFMove
[WebKit-https.git] / Source / WebCore / platform / win / WCDataObject.cpp
index 25dee14..dc1b526 100644 (file)
@@ -264,13 +264,13 @@ STDMETHODIMP WCDataObject::SetData(FORMATETC* pformatetc, STGMEDIUM* pmedium, BO
     ZeroMemory(pStgMed.get(), sizeof(STGMEDIUM));
 
     *fetc = *pformatetc;
-    m_formats.append(std::move(fetc));
+    m_formats.append(WTFMove(fetc));
 
     if(fRelease)
         *pStgMed = *pmedium;
     else
         CopyMedium(pStgMed.get(), pmedium, pformatetc);
-    m_medium.append(std::move(pStgMed));
+    m_medium.append(WTFMove(pStgMed));
 
     return S_OK;
 }
@@ -279,7 +279,6 @@ void WCDataObject::CopyMedium(STGMEDIUM* pMedDest, STGMEDIUM* pMedSrc, FORMATETC
 {
     switch(pMedSrc->tymed)
     {
-#if !OS(WINCE)
     case TYMED_HGLOBAL:
         pMedDest->hGlobal = (HGLOBAL)OleDuplicateData(pMedSrc->hGlobal,pFmtSrc->cfFormat, 0);
         break;
@@ -295,7 +294,6 @@ void WCDataObject::CopyMedium(STGMEDIUM* pMedDest, STGMEDIUM* pMedSrc, FORMATETC
     case TYMED_FILE:
         pMedSrc->lpszFileName = (LPOLESTR)OleDuplicateData(pMedSrc->lpszFileName,pFmtSrc->cfFormat, 0);
         break;
-#endif
     case TYMED_ISTREAM:
         pMedDest->pstm = pMedSrc->pstm;
         pMedSrc->pstm->AddRef();