From 64a0f466ec1a4f725cda738e05edb64d40516495 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Ho=C5=99e=C5=88ovsk=C3=BD?= Date: Sun, 13 Jan 2019 16:17:36 +0100 Subject: [PATCH] Add missing noexcept in move constructors Because both copy and move operations are trivial, this doesn't actually change anything, but it silences a static analysis warning. --- include/internal/catch_common.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/internal/catch_common.h b/include/internal/catch_common.h index b332e164..e4745622 100644 --- a/include/internal/catch_common.h +++ b/include/internal/catch_common.h @@ -52,10 +52,10 @@ namespace Catch { line( _line ) {} - SourceLineInfo( SourceLineInfo const& other ) = default; - SourceLineInfo( SourceLineInfo && ) = default; - SourceLineInfo& operator = ( SourceLineInfo const& ) = default; - SourceLineInfo& operator = ( SourceLineInfo && ) = default; + SourceLineInfo( SourceLineInfo const& other ) = default; + SourceLineInfo& operator = ( SourceLineInfo const& ) = default; + SourceLineInfo( SourceLineInfo&& ) noexcept = default; + SourceLineInfo& operator = ( SourceLineInfo&& ) noexcept = default; bool empty() const noexcept; bool operator == ( SourceLineInfo const& other ) const noexcept;