Commit f291076f authored by Benjamin REIS's avatar Benjamin REIS

remove const to fix build

parent 1b82a757
......@@ -69,12 +69,12 @@ const list<shared_ptr<ChatRoom>> &Core::getChatRooms () const {
return d->chatRooms;
}
const std::string &Core::getDataPath() const {
string Core::getDataPath() const {
L_D();
return Paths::getPath(Paths::Data, static_cast<PlatformHelpers *>(d->cCore->platform_helper));
}
const std::string &Core::getConfigPath() const {
string Core::getConfigPath() const {
L_D();
return Paths::getPath(Paths::Config, static_cast<PlatformHelpers *>(d->cCore->platform_helper));
}
......
......@@ -39,8 +39,8 @@ public:
std::shared_ptr<ChatRoom> createClientGroupChatRoom (const std::string &subject);
std::shared_ptr<ChatRoom> getOrCreateChatRoom (const std::string &peerAddress, bool isRtt = false) const;
const std::list<std::shared_ptr<ChatRoom>> &getChatRooms () const;
const std::string &getDataPath() const;
const std::string &getConfigPath() const;
std::string getDataPath() const;
std::string getConfigPath() const;
private:
L_DECLARE_PRIVATE(Core);
......
......@@ -28,14 +28,14 @@
LINPHONE_BEGIN_NAMESPACE
const std::string &SysPaths::getDataPath (PlatformHelpers *platformHelper) {
std::string SysPaths::getDataPath (PlatformHelpers *platformHelper) {
if (!platformHelper) {
return Utils::getEmptyConstRefObject<std::string>();
}
return platformHelper->getDataPath();
}
const std::string &SysPaths::getConfigPath (PlatformHelpers *platformHelper) {
std::string SysPaths::getConfigPath (PlatformHelpers *platformHelper) {
if (!platformHelper) {
return Utils::getEmptyConstRefObject<std::string>();
}
......
......@@ -30,8 +30,8 @@ LINPHONE_BEGIN_NAMESPACE
class PlatformHelpers;
namespace SysPaths {
LINPHONE_PUBLIC const std::string &getDataPath (PlatformHelpers *platformHelper);
LINPHONE_PUBLIC const std::string &getConfigPath (PlatformHelpers *platformHelper);
LINPHONE_PUBLIC std::string getDataPath (PlatformHelpers *platformHelper);
LINPHONE_PUBLIC std::string getConfigPath (PlatformHelpers *platformHelper);
}
LINPHONE_END_NAMESPACE
......
......@@ -30,8 +30,8 @@ LINPHONE_BEGIN_NAMESPACE
class PlatformHelpers;
namespace SysPaths {
LINPHONE_PUBLIC const std::string &getDataPath (PlatformHelpers *platformHelper);
LINPHONE_PUBLIC const std::string &getConfigPath (PlatformHelpers *platformHelper);
LINPHONE_PUBLIC std::string getDataPath (PlatformHelpers *platformHelper);
LINPHONE_PUBLIC std::string getConfigPath (PlatformHelpers *platformHelper);
}
LINPHONE_END_NAMESPACE
......
......@@ -30,7 +30,7 @@
LINPHONE_BEGIN_NAMESPACE
const std::string &SysPaths::getDataPath (PlatformHelpers *platformHelper) {
std::string SysPaths::getDataPath (PlatformHelpers *platformHelper) {
#ifdef __OBJC__
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSApplicationSupportDirectory, NSUserDomainMask, YES);
NSString *writablePath = [paths objectAtIndex:0];
......@@ -41,7 +41,7 @@ const std::string &SysPaths::getDataPath (PlatformHelpers *platformHelper) {
return Utils::getEmptyConstRefObject<std::string>();
}
const std::string &SysPaths::getConfigPath (PlatformHelpers *platformHelper) {
std::string SysPaths::getConfigPath (PlatformHelpers *platformHelper) {
#ifdef __OBJC__
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSLibraryDirectory, NSUserDomainMask, YES);
NSString *configPath = [paths objectAtIndex:0];
......
......@@ -26,12 +26,12 @@
LINPHONE_BEGIN_NAMESPACE
const std::string &SysPaths::getDataPath (PlatformHelpers *platformHelper) {
std::string SysPaths::getDataPath (PlatformHelpers *platformHelper) {
//TODO.
return Utils::getEmptyConstRefObject<std::string>();
}
const std::string &SysPaths::getConfigPath (PlatformHelpers *platformHelper) {
std::string SysPaths::getConfigPath (PlatformHelpers *platformHelper) {
//TODO.
return Utils::getEmptyConstRefObject<std::string>();
}
......
......@@ -30,8 +30,8 @@ LINPHONE_BEGIN_NAMESPACE
class PlatformHelpers;
namespace SysPaths {
LINPHONE_PUBLIC const std::string &getDataPath (PlatformHelpers *platformHelper);
LINPHONE_PUBLIC const std::string &getConfigPath (PlatformHelpers *platformHelper);
LINPHONE_PUBLIC std::string getDataPath (PlatformHelpers *platformHelper);
LINPHONE_PUBLIC std::string getConfigPath (PlatformHelpers *platformHelper);
}
LINPHONE_END_NAMESPACE
......
......@@ -26,12 +26,12 @@
LINPHONE_BEGIN_NAMESPACE
const std::string &SysPaths::getDataPath (PlatformHelpers *platformHelper) {
std::string SysPaths::getDataPath (PlatformHelpers *platformHelper) {
//TODO.
return Utils::getEmptyConstRefObject<std::string>();
}
const std::string &SysPaths::getConfigPath (PlatformHelpers *platformHelper) {
std::string SysPaths::getConfigPath (PlatformHelpers *platformHelper) {
//TODO.
return Utils::getEmptyConstRefObject<std::string>();
}
......
......@@ -30,8 +30,8 @@ LINPHONE_BEGIN_NAMESPACE
class PlatformHelpers;
namespace SysPaths {
LINPHONE_PUBLIC const std::string &getDataPath (PlatformHelpers *platformHelper);
LINPHONE_PUBLIC const std::string &getConfigPath (PlatformHelpers *platformHelper);
LINPHONE_PUBLIC std::string getDataPath (PlatformHelpers *platformHelper);
LINPHONE_PUBLIC std::string getConfigPath (PlatformHelpers *platformHelper);
}
LINPHONE_END_NAMESPACE
......
......@@ -38,7 +38,7 @@ using namespace std;
LINPHONE_BEGIN_NAMESPACE
const string &Paths::getPath (Paths::Type type, PlatformHelpers *platformHelper) {
string Paths::getPath (Paths::Type type, PlatformHelpers *platformHelper) {
switch (type) {
case Data:
return SysPaths::getDataPath(platformHelper);
......
......@@ -35,7 +35,7 @@ namespace Paths {
Config
};
LINPHONE_PUBLIC const std::string &getPath(Type type, PlatformHelpers *platformHelper);
LINPHONE_PUBLIC std::string getPath(Type type, PlatformHelpers *platformHelper);
}
LINPHONE_END_NAMESPACE
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment