[Libreoffice-commits] core.git: include/cppuhelper

Stephan Bergmann sbergman at redhat.com
Fri Oct 21 07:00:54 UTC 2016


 include/cppuhelper/proptypehlp.h   |    1 -
 include/cppuhelper/proptypehlp.hxx |    7 -------
 2 files changed, 8 deletions(-)

New commits:
commit 18f1965834757b4928bd81447457240610652241
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Fri Oct 21 08:58:23 2016 +0200

    Remove convertPropertyValue overload for OUString
    
    ...it never did anything different than the generic template overload.
    
    Strictly speaking, removing that inline function overload could be considered an
    API change, but it shouldn't cause any issues in practice even when recompiling
    all code against the new include files.
    
    Change-Id: Icb0942f56ee0888f09d3478f34d568d44651c838

diff --git a/include/cppuhelper/proptypehlp.h b/include/cppuhelper/proptypehlp.h
index d163831..ad44bdf 100644
--- a/include/cppuhelper/proptypehlp.h
+++ b/include/cppuhelper/proptypehlp.h
@@ -48,7 +48,6 @@ inline void SAL_CALL convertPropertyValue( sal_uInt16 & target, const css::uno::
 inline void SAL_CALL convertPropertyValue( sal_Int8 & target  , const css::uno::Any & source );
 inline void SAL_CALL convertPropertyValue( float & target     , const css::uno::Any & source );
 inline void SAL_CALL convertPropertyValue( double &target     , const css::uno::Any &source );
-inline void SAL_CALL convertPropertyValue( ::rtl::OUString &target  , const css::uno::Any &source );
 
 } // end namespace cppu
 
diff --git a/include/cppuhelper/proptypehlp.hxx b/include/cppuhelper/proptypehlp.hxx
index a9c55df..20b3013 100644
--- a/include/cppuhelper/proptypehlp.hxx
+++ b/include/cppuhelper/proptypehlp.hxx
@@ -272,13 +272,6 @@ inline void SAL_CALL convertPropertyValue( double &d , const css::uno::Any &a )
     }
 }
 
-inline void SAL_CALL convertPropertyValue( ::rtl::OUString &ow , const css::uno::Any &a )
-{
-    if( !(a >>= ow) ) {
-        throw css::lang::IllegalArgumentException();
-    }
-}
-
 }     // end namespace cppu
 
 #endif


More information about the Libreoffice-commits mailing list