From e530689ef6ba79a26162670580ba28f9b09eb689 Mon Sep 17 00:00:00 2001 From: brainbreaker Date: Thu, 13 Jul 2017 09:43:23 +0530 Subject: Clean up android specific template functions defined in std namespace Change-Id: I2094ee8eec00587f166d96723a02eb5957dbf79b Reviewed-on: https://gerrit.libreoffice.org/39890 Tested-by: Jenkins Reviewed-by: Miklos Vajna --- desktop/source/lib/init.cxx | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) (limited to 'desktop') diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx index c57c4e4d6760..fd62da29d704 100644 --- a/desktop/source/lib/init.cxx +++ b/desktop/source/lib/init.cxx @@ -85,6 +85,7 @@ #include #include #include +#include #include @@ -102,25 +103,6 @@ using namespace vcl; using namespace desktop; using namespace utl; -#if defined(ANDROID) -namespace std -{ -template -std::string to_string(T x) -{ - std::ostringstream stream; - stream << x; - return stream.str(); -} - -long stol( const std::string& str, std::size_t* /*pos*/ = 0, int base = 10 ) -{ - char* end; - return strtol(str.c_str(), &end, base); -} -} -#endif - static LibLibreOffice_Impl *gImpl = nullptr; static std::weak_ptr< LibreOfficeKitClass > gOfficeClass; static std::weak_ptr< LibreOfficeKitDocumentClass > gDocumentClass; -- cgit