[Libreoffice-commits] core.git: 2 commits - include/com sal/osl

Stephan Bergmann sbergman at redhat.com
Tue Nov 26 04:44:48 PST 2013


 include/com/sun/star/uno/Any.hxx |    2 +-
 sal/osl/unx/file.cxx             |    7 -------
 2 files changed, 1 insertion(+), 8 deletions(-)

New commits:
commit fc708d6286e184d7f1b63e4a334d5aa1c7959516
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Tue Nov 26 13:43:35 2013 +0100

    No need for additional << overload here
    
    ...non-explicit OString(rtl_String*) ctor already covers that
    
    Change-Id: I9e447795ddc585d765b48d1f7f41f3c795aecba2

diff --git a/sal/osl/unx/file.cxx b/sal/osl/unx/file.cxx
index 801bca5..28bea88 100644
--- a/sal/osl/unx/file.cxx
+++ b/sal/osl/unx/file.cxx
@@ -54,13 +54,6 @@
 #include <osl/detail/android-bootstrap.h>
 #endif
 
-template< typename charT, typename traits > std::basic_ostream<charT, traits> &
-operator <<(
-    std::basic_ostream<charT, traits> & stream, rtl_String * string)
-{
-    return stream << rtl_string_getStr(string);
-}
-
 /*******************************************************************
  *
  * FileHandle_Impl interface
commit 6da3bd044fb707f08f01719a80fc648c68c9a535
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Tue Nov 26 13:42:48 2013 +0100

    const fix
    
    Change-Id: I9abd4fa85d3d5718dffc0f03e3cc662a17a78ac8

diff --git a/include/com/sun/star/uno/Any.hxx b/include/com/sun/star/uno/Any.hxx
index e86322f..986b045 100644
--- a/include/com/sun/star/uno/Any.hxx
+++ b/include/com/sun/star/uno/Any.hxx
@@ -598,7 +598,7 @@ sal_uInt16 Any::get<sal_uInt16>() const;
    @since LibreOffice 4.2
 */
 template<typename charT, typename traits>
-inline std::basic_ostream<charT, traits> &operator<<(std::basic_ostream<charT, traits> &o, Any &any) {
+inline std::basic_ostream<charT, traits> &operator<<(std::basic_ostream<charT, traits> &o, Any const &any) {
     o << "<Any: (" << any.getValueTypeName() << ')';
     switch(any.pType->eTypeClass) {
         case typelib_TypeClass_VOID:


More information about the Libreoffice-commits mailing list