Remove NORET_ATTR.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2015-09-22 16:20:19 +03:00
parent 5df36147d3
commit 2107a2205a
2 changed files with 3 additions and 6 deletions

View file

@ -295,7 +295,7 @@ VCommandLinePtr VCommandLine::Get(const QCoreApplication& app)
}
//------------------------------------------------------------------------------------------------------
NORET_ATTR void VCommandLine::Error(const QString &text) const
Q_NORETURN void VCommandLine::Error(const QString &text) const
{
vStdErr() << text << "\n";
const_cast<VCommandLine*>(this)->parser.showHelp(FAILED_HELP_SHOWN_STATUS);

View file

@ -18,9 +18,6 @@ constexpr auto FAILED_TO_GEN_LAYOUT_STATUS = 253;
constexpr auto FAILED_HELP_SHOWN_STATUS = 250;
constexpr auto FAILED_GEN_BASE_STATUS = 240;
#define NORET_ATTR Q_NORETURN
//---------------------------------------------------------------------------------------------------------------------
inline QTextStream& vStdErr()
{
@ -29,7 +26,7 @@ inline QTextStream& vStdErr()
}
//---------------------------------------------------------------------------------------------------------------------
NORET_ATTR inline void AppAbort(const QString& text = QString(), int code = GENERAL_ERROR_STATUS)
Q_NORETURN inline void AppAbort(const QString& text = QString(), int code = GENERAL_ERROR_STATUS)
{
//well ..std::runtime_error was leading to zombies in memory and a lot of dumping all the time ...better to do just exit
//possibly compiler do not have -fexceptions set
@ -71,7 +68,7 @@ protected:
Cases OptGroup() const;
//@brief convinient shortcut to show error and help and exit
NORET_ATTR void Error(const QString& text) const;
Q_NORETURN void Error(const QString& text) const;
//@brief: called in destructor of application, so instance destroyed and new maybe created (never happen scenario though)
static void Reset();