From b361fd602176a3940db86e5293783d348dbb4d37 Mon Sep 17 00:00:00 2001 From: Volker Hilsheimer Date: Tue, 13 Aug 2024 12:47:29 +0200 Subject: [PATCH] QPdfOutputIntent: Remove noexcept from copy member functions Found during header review, and following status quo in existing APIs. Task-number: QTBUG-125859 Change-Id: Ib8004dd7fc4f22973be83b45f172003de20d5f90 Reviewed-by: Eirik Aavitsland (cherry picked from commit 7bcd33fe097925e640f3270f669c3a9a1a30afd1) Reviewed-by: Qt Cherry-pick Bot --- src/gui/painting/qpdfoutputintent.cpp | 4 ++-- src/gui/painting/qpdfoutputintent.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/gui/painting/qpdfoutputintent.cpp b/src/gui/painting/qpdfoutputintent.cpp index a3151f4d470..b960986c8d3 100644 --- a/src/gui/painting/qpdfoutputintent.cpp +++ b/src/gui/painting/qpdfoutputintent.cpp @@ -54,7 +54,7 @@ QPdfOutputIntent::QPdfOutputIntent() /*! Constructs a copy of the output intent \a other. */ -QPdfOutputIntent::QPdfOutputIntent(const QPdfOutputIntent &other) noexcept = default; +QPdfOutputIntent::QPdfOutputIntent(const QPdfOutputIntent &other) = default; /*! \fn QPdfOutputIntent::QPdfOutputIntent(QPdfOutputIntent &&other) noexcept @@ -65,7 +65,7 @@ QPdfOutputIntent::QPdfOutputIntent(const QPdfOutputIntent &other) noexcept = def /*! Assigns the output intent \a other over this intent. */ -QPdfOutputIntent &QPdfOutputIntent::operator=(const QPdfOutputIntent &other) noexcept = default; +QPdfOutputIntent &QPdfOutputIntent::operator=(const QPdfOutputIntent &other) = default; /*! \fn QPdfOutputIntent &QPdfOutputIntent::operator=(QPdfOutputIntent &&other) noexcept diff --git a/src/gui/painting/qpdfoutputintent.h b/src/gui/painting/qpdfoutputintent.h index d3eaffcfc4a..cdeb6da2a4e 100644 --- a/src/gui/painting/qpdfoutputintent.h +++ b/src/gui/painting/qpdfoutputintent.h @@ -23,9 +23,9 @@ class Q_GUI_EXPORT QPdfOutputIntent { public: QPdfOutputIntent(); - QPdfOutputIntent(const QPdfOutputIntent &other) noexcept; + QPdfOutputIntent(const QPdfOutputIntent &other); QPdfOutputIntent(QPdfOutputIntent &&other) noexcept = default; - QPdfOutputIntent &operator=(const QPdfOutputIntent &other) noexcept; + QPdfOutputIntent &operator=(const QPdfOutputIntent &other); QT_MOVE_ASSIGNMENT_OPERATOR_IMPL_VIA_PURE_SWAP(QPdfOutputIntent) ~QPdfOutputIntent();