diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-09-26 17:06:18 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-09-26 17:07:21 +0200 |
commit | 097f2e8cd15b9e7b4e96aecf1964c4764b52d595 (patch) | |
tree | 8d31a647a19ff4f709bc24b22f88e72eb31a54ad /sc/source/core | |
parent | da870b35dd0cf8b7a987530e896b3e044f444908 (diff) |
sc: fix Android build
to_string() is missing in the std namespace on the broken Android toolchain,
work it around.
Change-Id: I91c15cdcc906f35c6daef6be94f1260a7361942c
Diffstat (limited to 'sc/source/core')
-rw-r--r-- | sc/source/core/data/attrib.cxx | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/sc/source/core/data/attrib.cxx b/sc/source/core/data/attrib.cxx index b32024a9e7df..31f7b8c9b3d2 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; } |