From cab5ede6a3890b9cc07e54a0558a577c932ec21a Mon Sep 17 00:00:00 2001 From: Alexey Edelev Date: Tue, 5 Sep 2023 15:16:25 +0200 Subject: [PATCH] syncqt: Mark updateOrCopy as exception free Pick-to: 6.5 6.6 Change-Id: I4ac468ef503775bca7d3848d26b42990bb4fdd1a Reviewed-by: Amir Masoud Abdol Reviewed-by: Qt CI Bot --- src/tools/syncqt/main.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/tools/syncqt/main.cpp b/src/tools/syncqt/main.cpp index d4c96cf8b3..0f45661eab 100644 --- a/src/tools/syncqt/main.cpp +++ b/src/tools/syncqt/main.cpp @@ -1660,7 +1660,7 @@ public: return writeIfDifferent(m_commandLineArgs->versionScriptFile(), buffer.str()); } - bool updateOrCopy(const std::filesystem::path &src, const std::filesystem::path &dst); + bool updateOrCopy(const std::filesystem::path &src, const std::filesystem::path &dst) noexcept; void updateSymbolDescriptor(const std::string &symbol, const std::string &file, SymbolDescriptor::SourceType type); }; @@ -1686,7 +1686,8 @@ SyncScanner::makeHeaderAbsolute(const std::string &filename) const return utils::normilizedPath(filename); } -bool SyncScanner::updateOrCopy(const std::filesystem::path &src, const std::filesystem::path &dst) +bool SyncScanner::updateOrCopy(const std::filesystem::path &src, + const std::filesystem::path &dst) noexcept { if (m_commandLineArgs->showOnly()) return true;