Commit 634ea396 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

ActiveX: more warnings fixes

parent 501d7879
......@@ -408,8 +408,8 @@ private:
HRESULT ReadProperty(LPSTREAM pStm, AxVLCPropertyPair **prop)
{
HRESULT result;
ULONG len;
*prop = NULL;
result = pStm->Read(&len, sizeof(len), NULL);
if( FAILED(result) )
......
......@@ -677,7 +677,7 @@ HRESULT VLCPlugin::onAmbientChanged(LPUNKNOWN pContainer, DISPID dispID)
return S_OK;
};
HRESULT VLCPlugin::onClose(DWORD dwSaveOption)
HRESULT VLCPlugin::onClose(DWORD)
{
if( isInPlaceActive() )
{
......@@ -701,7 +701,7 @@ BOOL VLCPlugin::isInPlaceActive(void)
return (NULL != _inplacewnd);
};
HRESULT VLCPlugin::onActivateInPlace(LPMSG lpMesg, HWND hwndParent, LPCRECT lprcPosRect, LPCRECT lprcClipRect)
HRESULT VLCPlugin::onActivateInPlace(LPMSG, HWND hwndParent, LPCRECT lprcPosRect, LPCRECT lprcClipRect)
{
RECT clipRect = *lprcClipRect;
......@@ -946,7 +946,7 @@ void VLCPlugin::onDraw(DVTARGETDEVICE * ptd, HDC hicTargetDev,
}
};
void VLCPlugin::onPaint(HDC hdc, const RECT &bounds, const RECT &clipRect)
void VLCPlugin::onPaint(HDC hdc, const RECT &bounds, const RECT &)
{
if( isVisible() )
{
......
......@@ -68,7 +68,7 @@ STDMETHODIMP VLCControl::GetTypeInfoCount(UINT* pctInfo)
return NOERROR;
};
STDMETHODIMP VLCControl::GetTypeInfo(UINT iTInfo, LCID lcid, LPTYPEINFO* ppTInfo)
STDMETHODIMP VLCControl::GetTypeInfo(UINT, LCID, LPTYPEINFO* ppTInfo)
{
if( NULL == ppTInfo )
return E_INVALIDARG;
......@@ -83,8 +83,8 @@ STDMETHODIMP VLCControl::GetTypeInfo(UINT iTInfo, LCID lcid, LPTYPEINFO* ppTInfo
return E_NOTIMPL;
};
STDMETHODIMP VLCControl::GetIDsOfNames(REFIID riid, LPOLESTR* rgszNames,
UINT cNames, LCID lcid, DISPID* rgDispID)
STDMETHODIMP VLCControl::GetIDsOfNames(REFIID, LPOLESTR* rgszNames,
UINT cNames, LCID, DISPID* rgDispID)
{
if( SUCCEEDED(getTypeInfo()) )
{
......@@ -93,8 +93,8 @@ STDMETHODIMP VLCControl::GetIDsOfNames(REFIID riid, LPOLESTR* rgszNames,
return E_NOTIMPL;
};
STDMETHODIMP VLCControl::Invoke(DISPID dispIdMember, REFIID riid,
LCID lcid, WORD wFlags, DISPPARAMS* pDispParams,
STDMETHODIMP VLCControl::Invoke(DISPID dispIdMember, REFIID,
LCID, WORD wFlags, DISPPARAMS* pDispParams,
VARIANT* pVarResult, EXCEPINFO* pExcepInfo, UINT* puArgErr)
{
if( SUCCEEDED(getTypeInfo()) )
......@@ -307,7 +307,7 @@ STDMETHODIMP VLCControl::toggleMute(void)
return result;
};
STDMETHODIMP VLCControl::setVariable(BSTR name, VARIANT value)
STDMETHODIMP VLCControl::setVariable(BSTR, VARIANT)
{
libvlc_instance_t* p_libvlc;
HRESULT result = _p_instance->getVLC(&p_libvlc);
......@@ -320,7 +320,7 @@ STDMETHODIMP VLCControl::setVariable(BSTR name, VARIANT value)
return E_FAIL;
};
STDMETHODIMP VLCControl::getVariable(BSTR name, VARIANT *value)
STDMETHODIMP VLCControl::getVariable(BSTR, VARIANT *)
{
libvlc_instance_t* p_libvlc;
HRESULT result = _p_instance->getVLC(&p_libvlc);
......
......@@ -1262,7 +1262,7 @@ STDMETHODIMP VLCControl2::GetTypeInfoCount(UINT* pctInfo)
return NOERROR;
};
STDMETHODIMP VLCControl2::GetTypeInfo(UINT iTInfo, LCID lcid, LPTYPEINFO* ppTInfo)
STDMETHODIMP VLCControl2::GetTypeInfo(UINT, LCID, LPTYPEINFO* ppTInfo)
{
if( NULL == ppTInfo )
return E_INVALIDARG;
......@@ -1277,8 +1277,8 @@ STDMETHODIMP VLCControl2::GetTypeInfo(UINT iTInfo, LCID lcid, LPTYPEINFO* ppTInf
return E_NOTIMPL;
};
STDMETHODIMP VLCControl2::GetIDsOfNames(REFIID riid, LPOLESTR* rgszNames,
UINT cNames, LCID lcid, DISPID* rgDispID)
STDMETHODIMP VLCControl2::GetIDsOfNames(REFIID, LPOLESTR* rgszNames,
UINT cNames, LCID, DISPID* rgDispID)
{
if( SUCCEEDED(loadTypeInfo()) )
{
......@@ -1287,8 +1287,8 @@ STDMETHODIMP VLCControl2::GetIDsOfNames(REFIID riid, LPOLESTR* rgszNames,
return E_NOTIMPL;
};
STDMETHODIMP VLCControl2::Invoke(DISPID dispIdMember, REFIID riid,
LCID lcid, WORD wFlags, DISPPARAMS* pDispParams,
STDMETHODIMP VLCControl2::Invoke(DISPID dispIdMember, REFIID,
LCID, WORD wFlags, DISPPARAMS* pDispParams,
VARIANT* pVarResult, EXCEPINFO* pExcepInfo, UINT* puArgErr)
{
if( SUCCEEDED(loadTypeInfo()) )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment