From 86dd768ae98096fdc536e1d78eea59164877f8f8 Mon Sep 17 00:00:00 2001 From: Benjamin Reis Date: Thu, 19 Oct 2017 14:11:27 +0200 Subject: [PATCH] fix android build --- src/utils/paths/paths-android.cpp | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/src/utils/paths/paths-android.cpp b/src/utils/paths/paths-android.cpp index bce2b600e..cf846471e 100644 --- a/src/utils/paths/paths-android.cpp +++ b/src/utils/paths/paths-android.cpp @@ -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(); } - - AndroidPlatformHelper *helper = static_cast(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(); } - - AndroidPlatformHelper *helper = static_cast(context); - return helper->getConfigPath(); + return platformHelper->getConfigPath(); } LINPHONE_END_NAMESPACE