diff options
author | Karel Kočí <cynerd@email.cz> | 2017-09-02 15:34:07 +0200 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2017-09-02 15:34:07 +0200 |
commit | 375607d9969896c894fa2642ce4a0b8b519a2adb (patch) | |
tree | cb947a843d85f1cd278da15cff432c849986166c /qtmips_machine/qtmipsexception.h | |
parent | 82884b3ef726889f837542d2b5e98e2cd8246c00 (diff) | |
download | qtmips-375607d9969896c894fa2642ce4a0b8b519a2adb.tar.gz qtmips-375607d9969896c894fa2642ce4a0b8b519a2adb.tar.bz2 qtmips-375607d9969896c894fa2642ce4a0b8b519a2adb.zip |
Use QString and QVector instead of std ones and more
Diffstat (limited to 'qtmips_machine/qtmipsexception.h')
-rw-r--r-- | qtmips_machine/qtmipsexception.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/qtmips_machine/qtmipsexception.h b/qtmips_machine/qtmipsexception.h index bfaa788..81895d6 100644 --- a/qtmips_machine/qtmipsexception.h +++ b/qtmips_machine/qtmipsexception.h @@ -2,19 +2,19 @@ #define QTMIPSEXCEPTION_H #include <exception> -#include <string> +#include <qstring.h> -#define QTMIPS_EXCEPTION(TYPE, REASON, EXT) (QtMipsException ## TYPE (std::string(REASON), std::string(EXT), std::string(__FILE__), __LINE__)) -#define QTMIPS_ARGS_COMMON std::string reason, std::string ext, std::string file, int line +#define QTMIPS_EXCEPTION(TYPE, REASON, EXT) (QtMipsException ## TYPE (QString(REASON), QString(EXT), QString(__FILE__), __LINE__)) +#define QTMIPS_ARGS_COMMON QString reason, QString ext, QString file, int line // Base exception for all machine ones class QtMipsException : public std::exception { public: QtMipsException(QTMIPS_ARGS_COMMON); const char *what() const throw(); - std::string msg(bool pos) const; + QString msg(bool pos) const; protected: - std::string reason, ext, file; + QString reason, ext, file; int line; }; |