mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 14:38:15 +00:00
fixed win version after os x build
This commit is contained in:
@@ -49,7 +49,7 @@ using std::swap;
|
||||
class Exception : public exception {
|
||||
public:
|
||||
|
||||
Exception(const QString &msg, bool isFatal = true) : _fatal(isFatal), _msg(msg) {
|
||||
Exception(const QString &msg, bool isFatal = true) : _fatal(isFatal), _msg(msg.toUtf8()) {
|
||||
LOG(("Exception: %1").arg(msg));
|
||||
}
|
||||
bool fatal() const {
|
||||
@@ -57,14 +57,14 @@ public:
|
||||
}
|
||||
|
||||
virtual const char *what() const throw() {
|
||||
return _msg.toUtf8().constData();
|
||||
return _msg.constData();
|
||||
}
|
||||
virtual ~Exception() throw() {
|
||||
}
|
||||
|
||||
private:
|
||||
bool _fatal;
|
||||
QString _msg;
|
||||
QByteArray _msg;
|
||||
};
|
||||
|
||||
class MTPint;
|
||||
|
Reference in New Issue
Block a user