diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-02-01 10:22:17 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-02-01 10:22:17 +0000 |
commit | 2562ad74d1945322e9fdf8af5fc0b1f17e854c9b (patch) | |
tree | bb70cde1c7842f2e1f46750491f0b127b6e18276 /desktop/source | |
parent | dfdd01d12226cfbd9b9d2618bd9da71191bfc4b9 (diff) |
stoi not a member of std under android toolchain
Change-Id: I73a4e7894e33dd95ca50ea25f5f95bf94a43531e
Diffstat (limited to 'desktop/source')
-rw-r--r-- | desktop/source/lib/init.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx index d879798e85db..c11e16192a28 100644 --- a/desktop/source/lib/init.cxx +++ b/desktop/source/lib/init.cxx @@ -463,7 +463,7 @@ int lcl_getViewId(const std::string& payload) } if (numberPos < payload.length() && payload[numberPos] >= '0' && payload[numberPos] <= '9') - return std::stoi(payload.substr(numberPos)); + return strtol(payload.substr(numberPos).c_str(), nullptr, 10); return 0; } |