diff options
author | kh1 <karsten.heimrich@digia.com> | 2014-10-30 14:49:04 +0100 |
---|---|---|
committer | Karsten Heimrich <karsten.heimrich@digia.com> | 2014-10-30 17:40:58 +0100 |
commit | 3bba22fdcc02418f3781df13c80029f853545918 (patch) | |
tree | 58672573cafba32c7482a99494d0c5cf3fca4e3b /src/libs/installer/errors.h | |
parent | 43b238759898b65b5f28f544c546bc691faa8561 (diff) |
Fix annoying warning printed during installation.
Make the Error class to not inherit from runtime error,
there's no reason to do so. Add empty ctor to avoid dumping
the error message at least once. Check if a .dat file exists
and only then print warning.
Change-Id: I97833947022e05ee3b14992c8ec662874fb5d343
Reviewed-by: Christoph VogtlÃĪnder <c.vogtlaender@sigma-surface-science.com>
Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
Reviewed-by: Niels Weber <niels.weber@digia.com>
Diffstat (limited to 'src/libs/installer/errors.h')
-rw-r--r-- | src/libs/installer/errors.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libs/installer/errors.h b/src/libs/installer/errors.h index c63b52926..bcf32f3f8 100644 --- a/src/libs/installer/errors.h +++ b/src/libs/installer/errors.h @@ -42,12 +42,12 @@ namespace QInstaller { -class Error : public std::runtime_error +class Error : public std::exception { public: + Error() {} explicit Error(const QString &message) - : std::runtime_error(message.toStdString()) - , m_message (message) + : m_message(message) { qDebug() << "create Error-Exception:" << message; } |