diff --git a/.gitignore b/.gitignore index bcc2a83a216ed48b82bfb7b934a79e7e7c26d48c..b4e77fa32739c69ea56da53e8e768fb63951eab0 100644 --- a/.gitignore +++ b/.gitignore @@ -13,6 +13,8 @@ Debug/* # Build folder build/* +build.gcc/* +build.clang/* # Local configurations .vim/* diff --git a/src/Ass/Line.cc b/src/Ass/Line.cc index c4135c3e8a56c5d0a74a8b6d9cde20c7cb570aaa..7a1fdfcdff6e681bfd9838496bf2593fc2706d97 100644 --- a/src/Ass/Line.cc +++ b/src/Ass/Line.cc @@ -10,7 +10,7 @@ Line::setStart(quint64 s) noexcept start = s; if (s > end) end = s; -}; +} void Line::setEnd(quint64 s) noexcept @@ -18,4 +18,4 @@ Line::setEnd(quint64 s) noexcept end = s; if (start > s) start = s; -}; +} diff --git a/src/MainWindow.cc b/src/MainWindow.cc index 361299f336baebd44ecd1c9eae96e9810296a8ca..85c062f6500615c5d17a7b1ed13806e7aed0873d 100644 --- a/src/MainWindow.cc +++ b/src/MainWindow.cc @@ -128,7 +128,7 @@ MainWindow::openDocument() noexcept documents->addTab(documentView, document.lock()->getName()); } catch (const std::runtime_error &e) { qCritical() << "Failed to create the document view for" << baseName << "with path" << filename; - throw; + throw std::runtime_error("failed to create a document view"); } } diff --git a/src/TimingScene.cc b/src/TimingScene.cc index 78401ba8bb603e69359e167ad1a1ec20feac2787..f540fd86abeda396f5183963eb34b9e1216f534a 100644 --- a/src/TimingScene.cc +++ b/src/TimingScene.cc @@ -77,4 +77,4 @@ QGraphicsPixmapItem * TimingScene::bg() noexcept { return backgroundImg; -}; +} diff --git a/src/Utils.hh b/src/Utils.hh index e50543b33a863c79168ee6cc8f5c85804f2e9d69..5a8d9480a578ef08c4e249905df78c3814bd70ca 100644 --- a/src/Utils.hh +++ b/src/Utils.hh @@ -35,6 +35,6 @@ enum DocumentType : unsigned long long { }; bool detectDocumentType(const QFileInfo &, DocumentType *); -}; +} #endif // VIVY_UTILS_H