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

Stephan Bergmann (via logerrit) logerrit at kemper.freedesktop.org
Fri Jun 25 14:52:57 UTC 2021


 embedserv/source/embed/ed_ioleobject.cxx |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

New commits:
commit 68b1c5544ca33fe51c4c0025960decc624e9d3b2
Author:     Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Fri Jun 25 13:59:57 2021 +0200
Commit:     Stephan Bergmann <sbergman at redhat.com>
CommitDate: Fri Jun 25 16:52:17 2021 +0200

    -Werror,-Wunused-but-set-variable (clang-cl 13 trunk)
    
    ...ever since the code's introduction in
    c765b4858941f748fd5ed521e10123c505db5216 "CWS-TOOLING: integrate CWS
    buildid301_DEV300"
    
    Change-Id: I9e5ad6b8e682d50ba02b08ffcc52292f749ad27a
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117882
    Tested-by: Jenkins
    Reviewed-by: Stephan Bergmann <sbergman at redhat.com>

diff --git a/embedserv/source/embed/ed_ioleobject.cxx b/embedserv/source/embed/ed_ioleobject.cxx
index 1444dac0bf1e..839fd8e2d3d5 100644
--- a/embedserv/source/embed/ed_ioleobject.cxx
+++ b/embedserv/source/embed/ed_ioleobject.cxx
@@ -447,11 +447,9 @@ void EmbedDocument_Impl::notify( bool bDataChanged )
 
 void EmbedDocument_Impl::Deactivate()
 {
-    HRESULT hr = S_OK;
-
     if ( m_pDocHolder->HasFrame() )
     {
-        hr = SaveObject();
+        SaveObject();
         m_pDocHolder->CloseFrame();
         OLENotifyDeactivation();
     }


More information about the Libreoffice-commits mailing list