Compilation fixes

This commit is contained in:
Sylvain Berfini 2017-10-11 16:15:17 +02:00
parent af625e5c8f
commit 054a929f9b
2 changed files with 2 additions and 2 deletions

View file

@ -128,7 +128,7 @@ void IsComposing::startRefreshTimer () {
void IsComposing::startRemoteRefreshTimer (const char *refreshStr) {
unsigned int duration = getRemoteRefreshTimerDuration();
if (refreshStr)
duration = static_cast<unsigned int>(stoi(refreshStr));
duration = static_cast<unsigned int>(Utils::stoi(refreshStr));
if (!remoteRefreshTimer) {
remoteRefreshTimer = core->sal->create_timer(remoteRefreshTimerExpired, this,
duration * 1000, "composing remote refresh timeout");

View file

@ -241,7 +241,7 @@ void {{jniPackage}}{{classCName}}Impl_addListener(JNIEnv* env, jobject thiz, jlo
void {{jniPackage}}{{classCName}}Impl_removeListener(JNIEnv* env, jobject thiz, jlong ptr, jobject jlistener) {
{{classCName}} *cptr = ({{classCName}}*)ptr;
const bctbx_list_t *cbs_list = {{cPrefix}}_get_callbacks(cptr);
const bctbx_list_t *cbs_list = {{cPrefix}}_get_callbacks_list(cptr);
bctbx_list_t *it;
for (it = cbs_list; it != NULL; it = it->next) {
{{classCName}}Cbs *cbs = ({{classCName}}Cbs *)it->data;