From b1a58dcb238c5a48e24f226c89287595ef7a9225 Mon Sep 17 00:00:00 2001 From: Jonathan Wakely Date: Tue, 18 Mar 2025 21:16:46 +0000 Subject: [PATCH] libgcobol: Simplify assignment operator by defaulting it libgcobol/ChangeLog: * common-defs.h (cbl_enabled_exceptions_t::operator=): Define as defaulted. --- libgcobol/common-defs.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/libgcobol/common-defs.h b/libgcobol/common-defs.h index d052f58b6df..d2138770470 100644 --- a/libgcobol/common-defs.h +++ b/libgcobol/common-defs.h @@ -444,11 +444,7 @@ class cbl_enabled_exceptions_t : protected std::set bool empty() const { return std::set::empty(); } size_t size() const { return std::set::size(); } - cbl_enabled_exceptions_t& operator=( const cbl_enabled_exceptions_t& that ) { - std::set& self(*this); - self = that; - return *this; - } + cbl_enabled_exceptions_t& operator=( const cbl_enabled_exceptions_t& ) = default; }; extern cbl_enabled_exceptions_t enabled_exceptions; -- 2.47.2