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

Jochen Nitschke j.nitschke+logerrit at ok.de
Mon Aug 7 06:51:57 UTC 2017


 reportdesign/source/filter/xml/xmlfilter.cxx |    4 ----
 1 file changed, 4 deletions(-)

New commits:
commit 7b385595842b103ce6c990e6be5b9f18f2abdf7e
Author: Jochen Nitschke <j.nitschke+logerrit at ok.de>
Date:   Sun Aug 6 22:30:58 2017 +0200

    cppcheck: variableScope
    
    value unused since commit d5630adf33cc7d30a657e789e2bf0978028e0c1f
         loplugin:checkunusedparams in various
    
    Change-Id: I76c9a89f6fe15fbfce92f0d5578fd533325cb72b
    Reviewed-on: https://gerrit.libreoffice.org/40813
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>

diff --git a/reportdesign/source/filter/xml/xmlfilter.cxx b/reportdesign/source/filter/xml/xmlfilter.cxx
index e4f629fe6a0a..4106cdfc72b2 100644
--- a/reportdesign/source/filter/xml/xmlfilter.cxx
+++ b/reportdesign/source/filter/xml/xmlfilter.cxx
@@ -192,7 +192,6 @@ ErrCode ReadThroughComponent(
     if ( xStorage.is() )
     {
         uno::Reference< io::XStream > xDocStream;
-        bool bEncrypted = false;
 
         try
         {
@@ -215,9 +214,6 @@ ErrCode ReadThroughComponent(
 
             // get input stream
             xDocStream = xStorage->openStreamElement( sStreamName, embed::ElementModes::READ );
-
-            uno::Reference< beans::XPropertySet > xProps( xDocStream, uno::UNO_QUERY_THROW );
-            xProps->getPropertyValue("Encrypted") >>= bEncrypted;
         }
         catch (const packages::WrongPasswordException&)
         {


More information about the Libreoffice-commits mailing list