mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-17 19:18:06 +00:00
Fix build.
This commit is contained in:
parent
f049a10da8
commit
f3aa06edc7
4 changed files with 6 additions and 6 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -120,7 +120,7 @@ public:
|
|||
bool isToBeStored() const;
|
||||
void setIsToBeStored(bool store);
|
||||
|
||||
const LinphoneErrorInfo * getErrorInfo ();
|
||||
const LinphoneErrorInfo * getErrorInfo () const;
|
||||
|
||||
bool isReadOnly () const;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue