From 65030ebef217bcd1b8a7ddc19c6b40a5de691128 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 Change-Id: I4ac468ef503775bca7d3848d26b42990bb4fdd1a Reviewed-by: Amir Masoud Abdol Reviewed-by: Qt CI Bot (cherry picked from commit cab5ede6a3890b9cc07e54a0558a577c932ec21a) Reviewed-by: Qt Cherry-pick Bot (cherry picked from commit 28ad12261c43ae795971ee76df7081daf441ed28) --- 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 e17a6732d7a..a784ce311ca 100644 --- a/src/tools/syncqt/main.cpp +++ b/src/tools/syncqt/main.cpp @@ -1574,7 +1574,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); }; @@ -1600,7 +1600,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;