From 375607d9969896c894fa2642ce4a0b8b519a2adb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Sat, 2 Sep 2017 15:34:07 +0200 Subject: Use QString and QVector instead of std ones and more --- qtmips_machine/qtmipsexception.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'qtmips_machine/qtmipsexception.h') 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 -#include +#include -#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; }; -- cgit v1.2.3