[Libreoffice-commits] core.git: extensions/source

Stephan Bergmann sbergman at redhat.com
Fri Jun 30 13:45:59 UTC 2017


 extensions/source/ole/servprov.cxx |    6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

New commits:
commit cb111a5266adba46364409947effb14cd589c980
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Fri Jun 30 15:44:30 2017 +0200

    hresult1 is unused
    
    ...since ffa37355709b95c5b8951f3a46e2b7952eee84d2 "extensions: remove code
    specific to oleautobridge2"
    
    Change-Id: I13042dcf071e510fc5e51627562e35f5c9f1de54

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)


More information about the Libreoffice-commits mailing list