Skip to content
Snippets Groups Projects
Commit e0f52c1f authored by Guillaume Roguez's avatar Guillaume Roguez Committed by Adrien Béraud
Browse files

remove build warnings in API header


fix to_string() and to_status in lrc::api::call to remove
build warnings.

Change-Id: I29d964fca41c26795f28af5887397082199154c7
Reviewed-by: default avatarSébastien Blin <sebastien.blin@savoirfairelinux.com>
parent 193ef339
No related branches found
No related tags found
No related merge requests found
......@@ -52,7 +52,7 @@ enum class Status {
AUTO_ANSWERING
};
static inline const std::string
static inline std::string
to_string(const call::Status& status)
{
switch(status)
......@@ -85,6 +85,8 @@ to_string(const call::Status& status)
return QObject::tr("Communication established").toStdString();
case call::Status::AUTO_ANSWERING:
return QObject::tr("Auto answering").toStdString();
default:
return ""; // to remove a build warning, should not happen
}
}
......@@ -94,7 +96,7 @@ to_string(const call::Status& status)
* @param status
* @return
*/
static inline const Status
static inline Status
to_status(const std::string& status)
{
if (status == "INCOMING")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment