mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-22 22:28:08 +00:00
18 lines
445 B
C++
18 lines
445 B
C++
#ifndef UTILS_H_
|
|
#define UTILS_H_
|
|
|
|
#include <QString>
|
|
|
|
// =============================================================================
|
|
|
|
namespace Utils {
|
|
inline QString linphoneStringToQString (const std::string &string) {
|
|
return QString::fromLocal8Bit(string.c_str(), static_cast<int>(string.size()));
|
|
}
|
|
|
|
inline std::string qStringToLinphoneString (const QString &string) {
|
|
return string.toStdString();
|
|
}
|
|
}
|
|
|
|
#endif // UTILS_H_
|