[Libreoffice-commits] core.git: connectivity/source include/com

Stephan Bergmann sbergman at redhat.com
Wed Jan 8 02:48:28 PST 2014


 connectivity/source/commontools/dbexception.cxx |    2 --
 include/com/sun/star/uno/Type.h                 |    2 +-
 2 files changed, 1 insertion(+), 3 deletions(-)

New commits:
commit 46cf9aed39ac50219a4e8dbcf0b16359cb3644ee
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Wed Jan 8 11:47:38 2014 +0100

    SAL_WARN_UNUSED css::uno::Type
    
    Change-Id: I3b165e2a4414fd3d6c3cede5eb39beffa9fe7576

diff --git a/connectivity/source/commontools/dbexception.cxx b/connectivity/source/commontools/dbexception.cxx
index b05044f..9e8dc91 100644
--- a/connectivity/source/commontools/dbexception.cxx
+++ b/connectivity/source/commontools/dbexception.cxx
@@ -140,8 +140,6 @@ SQLExceptionInfo::SQLExceptionInfo(const staruno::Any& _rError)
 //------------------------------------------------------------------------------
 void SQLExceptionInfo::implDetermineType()
 {
-    staruno::Type aContentType = m_aContent.getValueType();
-
     const Type& aSQLExceptionType = ::getCppuType( static_cast< SQLException* >( 0 ) );
     const Type& aSQLWarningType = ::getCppuType( static_cast< SQLWarning* >( 0 ) );
     const Type& aSQLContextType  = ::getCppuType( static_cast< SQLContext* >( 0 ) );
diff --git a/include/com/sun/star/uno/Type.h b/include/com/sun/star/uno/Type.h
index 9723622..c1e4303 100644
--- a/include/com/sun/star/uno/Type.h
+++ b/include/com/sun/star/uno/Type.h
@@ -52,7 +52,7 @@ enum UnoType_NoAcquire
 
     @see typelib_TypeDescriptionReference
 */
-class Type
+class SAL_WARN_UNUSED Type
 {
     /** the C typelib reference pointer
     */


More information about the Libreoffice-commits mailing list