Skip to content

Commit 68d3a3c

Browse files
committed
BINDINGS/C++: Added some noexcept
1 parent 3d15f5a commit 68d3a3c

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

src/bindings/sail-c++/image_input.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,12 +121,12 @@ image_input::~image_input()
121121
}
122122
}
123123

124-
image_input::image_input(image_input &&other)
124+
image_input::image_input(image_input &&other) noexcept
125125
{
126126
*this = std::move(other);
127127
}
128128

129-
image_input& image_input::operator=(image_input &&other)
129+
image_input& image_input::operator=(image_input &&other) noexcept
130130
{
131131
d = std::move(other.d);
132132
other.d = {};

src/bindings/sail-c++/image_input.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,12 +78,12 @@ class SAIL_EXPORT image_input
7878
/*
7979
* Moves the image input.
8080
*/
81-
image_input(image_input &&other);
81+
image_input(image_input &&other) noexcept;
8282

8383
/*
8484
* Moves the image input.
8585
*/
86-
image_input& operator=(image_input &&other);
86+
image_input& operator=(image_input &&other) noexcept;
8787

8888
/*
8989
* Overrides the automatically detected codec info used to load the image.

src/bindings/sail-c++/image_output.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,12 +116,12 @@ image_output::~image_output()
116116
}
117117
}
118118

119-
image_output::image_output(image_output &&other)
119+
image_output::image_output(image_output &&other) noexcept
120120
{
121121
*this = std::move(other);
122122
}
123123

124-
image_output& image_output::operator=(image_output &&other)
124+
image_output& image_output::operator=(image_output &&other) noexcept
125125
{
126126
d = std::move(other.d);
127127
other.d = {};

src/bindings/sail-c++/image_output.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,12 +78,12 @@ class SAIL_EXPORT image_output
7878
/*
7979
* Moves the image output.
8080
*/
81-
image_output(image_output &&other);
81+
image_output(image_output &&other) noexcept;
8282

8383
/*
8484
* Moves the image output.
8585
*/
86-
image_output& operator=(image_output &&other);
86+
image_output& operator=(image_output &&other) noexcept;
8787

8888
/*
8989
* Overrides the automatically detected codec info used to save the image.

0 commit comments

Comments
 (0)