2
0
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:
John Preston
2014-06-25 21:50:27 +04:00
parent 0c7baa86a4
commit e5d083ca13
14 changed files with 19 additions and 18 deletions

View File

@@ -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;