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

Miklos Vajna vmiklos at collabora.co.uk
Mon Sep 26 15:09:35 UTC 2016


 sc/source/core/data/attrib.cxx |   11 +++++++++++
 1 file changed, 11 insertions(+)

New commits:
commit 097f2e8cd15b9e7b4e96aecf1964c4764b52d595
Author: Miklos Vajna <vmiklos at collabora.co.uk>
Date:   Mon Sep 26 17:06:18 2016 +0200

    sc: fix Android build
    
    to_string() is missing in the std namespace on the broken Android toolchain,
    work it around.
    
    Change-Id: I91c15cdcc906f35c6daef6be94f1260a7361942c

diff --git a/sc/source/core/data/attrib.cxx b/sc/source/core/data/attrib.cxx
index b32024a..31f7b8c 100644
--- a/sc/source/core/data/attrib.cxx
+++ b/sc/source/core/data/attrib.cxx
@@ -43,6 +43,17 @@
 
 using namespace com::sun::star;
 
+#ifdef ANDROID
+namespace std
+{
+template <typename T> std::string to_string(const T& rNumber)
+{
+    std::ostringstream aStream;
+    aStream << rNumber;
+    return aStream.str();
+}
+}
+#endif
 
 SfxPoolItem* ScProtectionAttr::CreateDefault() { return new ScProtectionAttr; }
 SfxPoolItem* ScDoubleItem::CreateDefault() { SAL_WARN( "sc", "No ScDoubleItem factory available"); return nullptr; }


More information about the Libreoffice-commits mailing list