summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2015-05-06 21:15:59 +0300
committerTor Lillqvist <tml@collabora.com>2015-05-06 21:19:08 +0300
commit713a8f3f53028b89f0836f86923370515a210585 (patch)
tree80dfe89beef483dae27ab8f4b3a2f4f83e4ab792 /desktop
parentfeb336a2a286ff1fc4f584c1ee4ab2148ac596ad (diff)
Nah, the Android NDK we use doesn't have std::to_string()
So do the verbose OUString::number().toUtf8().getStr() dance. Change-Id: Ied5f6c3ec936544f0f36eeafd07f9496e9061373
Diffstat (limited to 'desktop')
-rw-r--r--desktop/source/lib/init.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx
index fcfa33f2a3ce..4cdce607a04a 100644
--- a/desktop/source/lib/init.cxx
+++ b/desktop/source/lib/init.cxx
@@ -9,8 +9,6 @@
#include <config_folders.h>
-#include <string>
-
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
@@ -905,7 +903,7 @@ static void lo_status_indicator_callback(void *data, comphelper::LibreOfficeKit:
pLib->mpCallback(LOK_CALLBACK_STATUS_INDICATOR_START, 0, pLib->mpCallbackData);
break;
case comphelper::LibreOfficeKit::statusIndicatorCallbackType::SetValue:
- pLib->mpCallback(LOK_CALLBACK_STATUS_INDICATOR_SET_VALUE, std::to_string(percent).c_str(), pLib->mpCallbackData);
+ pLib->mpCallback(LOK_CALLBACK_STATUS_INDICATOR_SET_VALUE, OUString::number(percent).toUtf8().getStr(), pLib->mpCallbackData);
break;
case comphelper::LibreOfficeKit::statusIndicatorCallbackType::Finish:
pLib->mpCallback(LOK_CALLBACK_STATUS_INDICATOR_FINISH, 0, pLib->mpCallbackData);