Fix build.

This commit is contained in:
Ghislain MARY 2017-09-27 15:18:35 +02:00
parent f049a10da8
commit f3aa06edc7
4 changed files with 6 additions and 6 deletions

View file

@ -244,7 +244,7 @@ const char *linphone_chat_message_get_custom_header(LinphoneChatMessage *msg, co
return L_GET_CPP_PTR_FROM_C_OBJECT(msg)->getSalCustomHeaderValue(header_name).c_str();
}
const LinphoneErrorInfo *linphone_chat_message_get_error_info(LinphoneChatMessage *msg) {
const LinphoneErrorInfo *linphone_chat_message_get_error_info(const LinphoneChatMessage *msg) {
return L_GET_CPP_PTR_FROM_C_OBJECT(msg)->getErrorInfo();
}
@ -400,4 +400,4 @@ void linphone_chat_message_start_file_download(LinphoneChatMessage *msg,
void linphone_chat_message_release(LinphoneChatMessage *msg) {
linphone_chat_message_deactivate(msg);
linphone_chat_message_unref(msg);
}
}

View file

@ -54,7 +54,7 @@ private:
std::shared_ptr<Content> internalContent;
std::unordered_map<std::string, std::string> customHeaders;
std::shared_ptr<EventsDb> eventsDb;
LinphoneErrorInfo * errorInfo;
mutable LinphoneErrorInfo * errorInfo;
belle_http_request_t *httpRequest;
SalOp *salOp;
SalCustomHeader *salCustomHeaders;

View file

@ -307,8 +307,8 @@ string ChatMessage::getSalCustomHeaderValue(string name) {
return sal_custom_header_find(d->salCustomHeaders, name.c_str());
}
const LinphoneErrorInfo * ChatMessage::getErrorInfo() {
L_D(ChatMessage);
const LinphoneErrorInfo * ChatMessage::getErrorInfo() const {
L_D(const ChatMessage);
if (!d->errorInfo) d->errorInfo = linphone_error_info_new(); //let's do it mutable
linphone_error_info_from_sal_op(d->errorInfo, d->salOp);
return d->errorInfo;

View file

@ -120,7 +120,7 @@ public:
bool isToBeStored() const;
void setIsToBeStored(bool store);
const LinphoneErrorInfo * getErrorInfo ();
const LinphoneErrorInfo * getErrorInfo () const;
bool isReadOnly () const;