Skip to content

Commit a970b9c

Browse files
committed
tidy code
1 parent 0f0ab5a commit a970b9c

25 files changed

+73
-63
lines changed

include/jsoncons/byte_string.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ namespace detail {
366366
template <typename Allocator>
367367
constexpr byte_string_view(const basic_byte_string<Allocator>& bytes);
368368

369-
constexpr byte_string_view(const byte_string_view&) noexcept = default;
369+
constexpr byte_string_view(const byte_string_view&) = default;
370370

371371
JSONCONS_CPP14_CONSTEXPR byte_string_view(byte_string_view&& other) noexcept
372372
: data_(nullptr), size_(0)

include/jsoncons/detail/optional.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ namespace detail
209209
!is_constructible_convertible_or_assignable_from_optional<T,U>::value &&
210210
std::is_assignable<T&, U>::value,
211211
optional&>::type
212-
operator=(optional<U>&& other)
212+
operator=(optional<U>&& other) noexcept
213213
{
214214
if (other)
215215
{

include/jsoncons/detail/span.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,9 @@ namespace detail {
104104
{
105105
}
106106

107-
constexpr span(const span& other) noexcept = default;
107+
constexpr span(const span& other) = default;
108108

109-
span& operator=( const span& other ) noexcept = default;
109+
span& operator=( const span& other ) = default;
110110

111111
constexpr pointer data() const noexcept
112112
{

include/jsoncons/detail/string_view.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ namespace detail {
5252
: data_(data), length_(Traits::length(data))
5353
{
5454
}
55-
constexpr basic_string_view(const basic_string_view& other) noexcept = default;
55+
constexpr basic_string_view(const basic_string_view& other) = default;
5656

5757
template <typename Tr,typename Allocator>
5858
JSONCONS_CPP14_CONSTEXPR basic_string_view(const std::basic_string<CharT,Tr,Allocator>& s) noexcept

include/jsoncons/item_event_visitor.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ namespace jsoncons {
3232

3333
basic_item_event_visitor() = default;
3434

35-
virtual ~basic_item_event_visitor() noexcept = default;
35+
virtual ~basic_item_event_visitor() = default;
3636

3737
void flush()
3838
{

include/jsoncons/json_exception.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ namespace jsoncons {
2222
class json_exception
2323
{
2424
public:
25-
virtual ~json_exception() noexcept = default;
25+
virtual ~json_exception() = default;
2626
virtual const char* what() const noexcept = 0;
2727
};
2828

include/jsoncons/json_object.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ namespace jsoncons {
352352
return *this;
353353
}
354354

355-
sorted_json_object& operator=(sorted_json_object&& other)
355+
sorted_json_object& operator=(sorted_json_object&& other) noexcept
356356
{
357357
other.swap(*this);
358358
return *this;

include/jsoncons/json_options.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ class basic_json_options_common
103103
max_nesting_depth_(1024)
104104
{}
105105

106-
virtual ~basic_json_options_common() noexcept = default;
106+
virtual ~basic_json_options_common() = default;
107107

108108
basic_json_options_common(const basic_json_options_common&) = default;
109109
basic_json_options_common& operator=(const basic_json_options_common&) = default;
@@ -268,7 +268,7 @@ class basic_json_decode_options : public virtual basic_json_options_common<CharT
268268

269269
basic_json_decode_options(const basic_json_decode_options&) = default;
270270

271-
basic_json_decode_options(basic_json_decode_options&& other)
271+
basic_json_decode_options(basic_json_decode_options&& other) noexcept
272272
: super_type(std::move(other)), lossless_number_(other.lossless_number_), err_handler_(std::move(other.err_handler_))
273273
{
274274
}
@@ -340,7 +340,7 @@ class basic_json_encode_options : public virtual basic_json_options_common<CharT
340340

341341
basic_json_encode_options(const basic_json_encode_options&) = default;
342342

343-
basic_json_encode_options(basic_json_encode_options&& other)
343+
basic_json_encode_options(basic_json_encode_options&& other) noexcept
344344
: super_type(std::move(other)),
345345
escape_all_non_ascii_(other.escape_all_non_ascii_),
346346
escape_solidus_(other.escape_solidus_),

include/jsoncons/json_visitor.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ namespace jsoncons {
3232

3333
basic_json_visitor() = default;
3434

35-
virtual ~basic_json_visitor() noexcept = default;
35+
virtual ~basic_json_visitor() = default;
3636

3737
void flush()
3838
{

include/jsoncons/ser_context.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ namespace jsoncons {
1212
class ser_context
1313
{
1414
public:
15-
virtual ~ser_context() noexcept = default;
15+
virtual ~ser_context() = default;
1616

1717
virtual size_t line() const
1818
{

0 commit comments

Comments
 (0)