diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-07-05 10:11:32 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-07-05 10:11:32 +0200 |
commit | 9d04754308517e155bcb7332e803b098d17a53d2 (patch) | |
tree | ae7ee110c73154fa81aadf397499d55f80b6d898 | |
parent | 1621a121b344b100a1c2f39fb03791e3e748a8eb (diff) |
loplugin:casttovoid (clang-cl): extensions
Change-Id: I91eeddd37a745592a9aa0f0827f65db257e1dfad
-rw-r--r-- | extensions/source/activex/SOActiveX.cxx | 3 | ||||
-rw-r--r-- | extensions/source/ole/servprov.cxx | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/extensions/source/activex/SOActiveX.cxx b/extensions/source/activex/SOActiveX.cxx index f93ad01018e2..c42683dfbc1f 100644 --- a/extensions/source/activex/SOActiveX.cxx +++ b/extensions/source/activex/SOActiveX.cxx @@ -986,8 +986,7 @@ HRESULT CSOActiveX::OnDrawAdvanced( ATL_DRAWINFO& di ) CComVariant dummyResult; CComVariant aPropVar; aPropVar.vt = VT_BOOL; aPropVar.boolVal = VARIANT_FALSE; - HRESULT hres = ExecuteFunc( mpDispFrame, L"close", &aPropVar, 1, &dummyResult ); - (void)hres; + (void) ExecuteFunc( mpDispFrame, L"close", &aPropVar, 1, &dummyResult ); mpDispFrame = CComPtr<IDispatch>(); } diff --git a/extensions/source/ole/servprov.cxx b/extensions/source/ole/servprov.cxx index 967dcec6595d..86ecc75b0f45 100644 --- a/extensions/source/ole/servprov.cxx +++ b/extensions/source/ole/servprov.cxx @@ -623,8 +623,7 @@ OleServer_Impl::OleServer_Impl( const Reference<XMultiServiceFactory>& smgr): a >>= m_bridgeSupplier; } - bool ret = provideInstance( m_smgr, const_cast<GUID*>(&OID_ServiceManager) ); - (void)ret; + (void) provideInstance( m_smgr, const_cast<GUID*>(&OID_ServiceManager) ); } OleServer_Impl::~OleServer_Impl() |