Skip to content

Commit aca1b12

Browse files
authored
style(clang-tidy): fix performance-noexcept-move-constructor (#1764)
Signed-off-by: Balakrishna Avulapati <ba@bavulapati.com>
1 parent 10505d7 commit aca1b12

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/core/uri/include/sourcemeta/core/uri.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ class SOURCEMETA_CORE_URI_EXPORT URI {
6161
URI(const URI &other);
6262

6363
/// Move constructor
64-
URI(URI &&other);
64+
URI(URI &&other) noexcept;
6565

6666
/// Check if the URI is absolute. For example:
6767
///

src/core/uri/uri.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ URI::~URI() { uriFreeUriMembersA(&this->internal->uri); }
138138
// TODO: Test the copy constructor
139139
URI::URI(const URI &other) : URI{other.recompose()} {}
140140

141-
URI::URI(URI &&other)
141+
URI::URI(URI &&other) noexcept
142142
: parsed{other.parsed}, data{std::move(other.data)},
143143
path_{std::move(other.path_)}, userinfo_{std::move(other.userinfo_)},
144144
host_{std::move(other.host_)}, port_{other.port_},

0 commit comments

Comments
 (0)