[Libreoffice-commits] core.git: 2 commits - desktop/source testtools/source

Stephan Bergmann sbergman at redhat.com
Tue Nov 19 03:30:14 PST 2013


 desktop/source/migration/services/oo3extensionmigration.cxx |    3 +--
 testtools/source/bridgetest/bridgetest.cxx                  |    6 ++----
 2 files changed, 3 insertions(+), 6 deletions(-)

New commits:
commit 3773201d5973d40f0b6a67930adeaed36f1494c9
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Tue Nov 19 11:02:20 2013 +0100

    -Werror,-Wunused-variable
    
    Change-Id: I46138b946ff38df5366760dbc1999057fee35bd3

diff --git a/desktop/source/migration/services/oo3extensionmigration.cxx b/desktop/source/migration/services/oo3extensionmigration.cxx
index 0f039d3..1846529 100644
--- a/desktop/source/migration/services/oo3extensionmigration.cxx
+++ b/desktop/source/migration/services/oo3extensionmigration.cxx
@@ -439,8 +439,7 @@ void TmpRepositoryCommandEnv::handle(
     uno::Reference< task::XInteractionRequest> const & xRequest )
     throw ( uno::RuntimeException )
 {
-    uno::Any request( xRequest->getRequest() );
-    OSL_ASSERT( request.getValueTypeClass() == uno::TypeClass_EXCEPTION );
+    OSL_ASSERT( xRequest->getRequest().getValueTypeClass() == uno::TypeClass_EXCEPTION );
 
     bool approve = true;
     bool abort   = false;
commit 6e60a6f97171c0272871d2010a6fceefba38531e
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Tue Nov 19 10:51:45 2013 +0100

    -Werror,-Wunused-variable
    
    Change-Id: Ieac2e725b2baad29dedb225d6009b2abe421be04

diff --git a/testtools/source/bridgetest/bridgetest.cxx b/testtools/source/bridgetest/bridgetest.cxx
index a82bfc2..fc03a85 100644
--- a/testtools/source/bridgetest/bridgetest.cxx
+++ b/testtools/source/bridgetest/bridgetest.cxx
@@ -270,14 +270,12 @@ static sal_Bool performAnyTest( const Reference< XBridgeTest > &xLBT, const Test
     Any a;
     {
         a.setValue( &(data.Bool) , getCppuBooleanType() );
-        Any a2 = xLBT->transportAny( a );
-        OSL_ASSERT( a2 == a );
+        OSL_ASSERT( xLBT->transportAny( a ) == a );
     }
 
     {
         a.setValue( &(data.Char) , getCppuCharType() );
-        Any a2 = xLBT->transportAny( a );
-        OSL_ASSERT( a2 == a );
+        OSL_ASSERT( xLBT->transportAny( a ) == a );
     }
 
     return bReturn;


More information about the Libreoffice-commits mailing list