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