diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-06-30 15:44:30 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-06-30 15:44:30 +0200 |
commit | cb111a5266adba46364409947effb14cd589c980 (patch) | |
tree | 8d23b725638623d82e37de7317a665464bce8594 /extensions | |
parent | 8cab4b5d7dbc546903b28114d6daa6ab73e01594 (diff) |
hresult1 is unused
...since ffa37355709b95c5b8951f3a46e2b7952eee84d2 "extensions: remove code
specific to oleautobridge2"
Change-Id: I13042dcf071e510fc5e51627562e35f5c9f1de54
Diffstat (limited to 'extensions')
-rw-r--r-- | extensions/source/ole/servprov.cxx | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/extensions/source/ole/servprov.cxx b/extensions/source/ole/servprov.cxx index 28d64cf5664e..967dcec6595d 100644 --- a/extensions/source/ole/servprov.cxx +++ b/extensions/source/ole/servprov.cxx @@ -227,11 +227,7 @@ bool OneInstanceOleWrapper_Impl::registerClass() bool OneInstanceOleWrapper_Impl::deregisterClass() { - HRESULT hresult1 = NOERROR; - - HRESULT hresult2 = CoRevokeClassObject(m_factoryHandle); - - return (hresult1 == NOERROR && hresult2 == NOERROR); + return CoRevokeClassObject(m_factoryHandle) == NOERROR; } STDMETHODIMP OneInstanceOleWrapper_Impl::QueryInterface(REFIID riid, void FAR* FAR* ppv) |