From 983bdf3dd434fd60dfdfa0fe1fda5761b57b4519 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 8 Nov 2022 10:56:15 +0200 Subject: Add missing noexcept qualification in path.hxx --- libbutl/path.hxx | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'libbutl') diff --git a/libbutl/path.hxx b/libbutl/path.hxx index b3be75a..70c15d4 100644 --- a/libbutl/path.hxx +++ b/libbutl/path.hxx @@ -612,18 +612,18 @@ namespace butl // Constructors. // - path_data () + path_data () noexcept : tsep_ (0) {} - path_data (string_type&& p, difference_type ts) + path_data (string_type&& p, difference_type ts) noexcept : path_ (std::move (p)), tsep_ (path_.empty () ? 0 : ts) {} explicit - path_data (string_type&& p) + path_data (string_type&& p) noexcept : path_ (std::move (p)) { _init (); } void - _init () + _init () noexcept { size_type n (path_.size ()), i; @@ -651,7 +651,8 @@ namespace butl using path_data::path_data; base_type () = default; - base_type (path_data&& d): path_data (std::move (d)) {} + base_type (path_data&& d) noexcept + : path_data (std::move (d)) {} }; using dir_type = basic_path>; @@ -1278,7 +1279,8 @@ namespace butl // Direct initialization without init()/cast(). // explicit - basic_path (data_type&& d): base_type (std::move (d)) {} + basic_path (data_type&& d) noexcept + : base_type (std::move (d)) {} using base_type::_size; using base_type::_init; -- cgit v1.1