Kaydet (Commit) 713a8f3f authored tarafından Tor Lillqvist's avatar Tor Lillqvist

Nah, the Android NDK we use doesn't have std::to_string()

So do the verbose OUString::number().toUtf8().getStr() dance.

Change-Id: Ied5f6c3ec936544f0f36eeafd07f9496e9061373
üst feb336a2
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment