summaryrefslogtreecommitdiff
path: root/embedserv/source/embed/ed_ioleobject.cxx
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2006-06-20 04:40:04 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2006-06-20 04:40:04 +0000
commit16744e59a143f1f85ac8b66dec03d1ca8c8c1c36 (patch)
treee6d70983cda4374096b0eb74265a63e7177da852 /embedserv/source/embed/ed_ioleobject.cxx
parent69c085102f268092130b510894b0877759e4b0c2 (diff)
INTEGRATION: CWS warnings01 (1.14.16); FILE MERGED
2006/04/20 12:40:27 sb 1.14.16.3: #i53898# Made code warning-free again after resync to SRC680m162. 2006/04/07 21:29:50 sb 1.14.16.2: RESYNC: (1.14-1.15); FILE MERGED 2006/02/20 15:31:44 cd 1.14.16.1: #i55991# Warning free code for Windows C++ compiler
Diffstat (limited to 'embedserv/source/embed/ed_ioleobject.cxx')
-rwxr-xr-xembedserv/source/embed/ed_ioleobject.cxx43
1 files changed, 23 insertions, 20 deletions
diff --git a/embedserv/source/embed/ed_ioleobject.cxx b/embedserv/source/embed/ed_ioleobject.cxx
index aab8d04ed37b..42651134a3fd 100755
--- a/embedserv/source/embed/ed_ioleobject.cxx
+++ b/embedserv/source/embed/ed_ioleobject.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: ed_ioleobject.cxx,v $
*
- * $Revision: 1.15 $
+ * $Revision: 1.16 $
*
- * last change: $Author: rt $ $Date: 2006-02-09 13:37:01 $
+ * last change: $Author: hr $ $Date: 2006-06-20 05:40:04 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -102,22 +102,22 @@ STDMETHODIMP EmbedDocument_Impl::Close( DWORD dwSaveOption )
return hr;
}
-STDMETHODIMP EmbedDocument_Impl::SetMoniker( DWORD dwWhichMoniker, IMoniker *pmk )
+STDMETHODIMP EmbedDocument_Impl::SetMoniker( DWORD /*dwWhichMoniker*/, IMoniker * /*pmk*/ )
{
return E_NOTIMPL;
}
-STDMETHODIMP EmbedDocument_Impl::GetMoniker( DWORD dwAssign, DWORD dwWhichMoniker, IMoniker **ppmk )
+STDMETHODIMP EmbedDocument_Impl::GetMoniker( DWORD /*dwAssign*/, DWORD /*dwWhichMoniker*/, IMoniker ** /*ppmk*/ )
{
return E_NOTIMPL;
}
-STDMETHODIMP EmbedDocument_Impl::InitFromData( IDataObject *pDataObject, BOOL fCreation, DWORD dwReserved )
+STDMETHODIMP EmbedDocument_Impl::InitFromData( IDataObject * /*pDataObject*/, BOOL /*fCreation*/, DWORD /*dwReserved*/ )
{
return E_NOTIMPL;
}
-STDMETHODIMP EmbedDocument_Impl::GetClipboardData( DWORD dwReserved, IDataObject **ppDataObject )
+STDMETHODIMP EmbedDocument_Impl::GetClipboardData( DWORD /*dwReserved*/, IDataObject ** /*ppDataObject*/ )
{
return E_NOTIMPL;
}
@@ -130,11 +130,11 @@ STDMETHODIMP EmbedDocument_Impl::GetClipboardData( DWORD dwReserved, IDataObject
STDMETHODIMP EmbedDocument_Impl::DoVerb(
LONG iVerb,
- LPMSG lpmsg,
+ LPMSG,
IOleClientSite *pActiveSite,
- LONG lindex,
- HWND hwndParent,
- LPCRECT lprcPosRect )
+ LONG,
+ HWND,
+ LPCRECT )
{
switch(iVerb) {
case OLEIVERB_DISCARDUNDOSTATE:
@@ -210,7 +210,7 @@ STDMETHODIMP EmbedDocument_Impl::DoVerb(
-STDMETHODIMP EmbedDocument_Impl::EnumVerbs( IEnumOLEVERB **ppEnumOleVerb )
+STDMETHODIMP EmbedDocument_Impl::EnumVerbs( IEnumOLEVERB ** /*ppEnumOleVerb*/ )
{
return OLE_S_USEREG;
}
@@ -230,14 +230,12 @@ STDMETHODIMP EmbedDocument_Impl::GetUserClassID( CLSID *pClsid )
return GetClassID( pClsid );
}
-
-
-STDMETHODIMP EmbedDocument_Impl::GetUserType( DWORD dwFormOfType, LPOLESTR *pszUserType )
+STDMETHODIMP EmbedDocument_Impl::GetUserType( DWORD /*dwFormOfTypeUe*/, LPOLESTR * /*pszUserType*/ )
{
return OLE_S_USEREG;
}
-STDMETHODIMP EmbedDocument_Impl::SetExtent( DWORD dwDrawAspect, SIZEL *psizel )
+STDMETHODIMP EmbedDocument_Impl::SetExtent( DWORD /*dwDrawAspect*/, SIZEL *psizel )
{
if ( !psizel )
return E_FAIL;
@@ -247,7 +245,7 @@ STDMETHODIMP EmbedDocument_Impl::SetExtent( DWORD dwDrawAspect, SIZEL *psizel )
return S_OK;
}
-STDMETHODIMP EmbedDocument_Impl::GetExtent( DWORD dwDrawAspect, SIZEL *psizel )
+STDMETHODIMP EmbedDocument_Impl::GetExtent( DWORD /*dwDrawAspect*/, SIZEL * psizel )
{
if ( !psizel )
return E_INVALIDARG;
@@ -288,17 +286,17 @@ STDMETHODIMP EmbedDocument_Impl::Unadvise( DWORD dwConnection )
return S_OK;
}
-STDMETHODIMP EmbedDocument_Impl::EnumAdvise( IEnumSTATDATA **ppenumAdvise )
+STDMETHODIMP EmbedDocument_Impl::EnumAdvise( IEnumSTATDATA ** /*ppenumAdvise*/ )
{
return E_NOTIMPL;
}
-STDMETHODIMP EmbedDocument_Impl::GetMiscStatus( DWORD dwAspect, DWORD *pdwStatus )
+STDMETHODIMP EmbedDocument_Impl::GetMiscStatus( DWORD /*dwAspect*/, DWORD * /*pdwStatus*/ )
{
return OLE_S_USEREG;
}
-STDMETHODIMP EmbedDocument_Impl::SetColorScheme( LOGPALETTE *pLogpal )
+STDMETHODIMP EmbedDocument_Impl::SetColorScheme( LOGPALETTE * /*pLogpal*/ )
{
return E_NOTIMPL;
}
@@ -407,4 +405,9 @@ void EmbedDocument_Impl::notify( bool bDataChanged )
m_pDAdviseHolder->SendOnDataChange( (IDataObject*)this, 0, 0 );
}
-
+// Fix strange warnings about some
+// ATL::CAxHostWindow::QueryInterface|AddRef|Releae functions.
+// warning C4505: 'xxx' : unreferenced local function has been removed
+#if defined(_MSC_VER)
+#pragma warning(disable: 4505)
+#endif