fix android build

This commit is contained in:
Benjamin Reis 2017-10-19 14:11:27 +02:00
parent 8b51263cae
commit 86dd768ae9

View file

@ -28,22 +28,18 @@
LINPHONE_BEGIN_NAMESPACE
const std::string &SysPaths::getDataPath (void *context) {
if (!context) {
const std::string &SysPaths::getDataPath (PlatformHelper *platformHelper) {
if (!platformHelper) {
return Utils::getEmptyConstRefObject<std::string>();
}
AndroidPlatformHelper *helper = static_cast<AndroidPlatformHelper>(context);
return helper->getDataPath();
return platformHelper->getDataPath();
}
const std::string &SysPaths::getConfigPath (void *context) {
if (!context) {
const std::string &SysPaths::getConfigPath (PlatformHelper *platformHelper) {
if (!platformHelper) {
return Utils::getEmptyConstRefObject<std::string>();
}
AndroidPlatformHelper *helper = static_cast<AndroidPlatformHelper>(context);
return helper->getConfigPath();
return platformHelper->getConfigPath();
}
LINPHONE_END_NAMESPACE