Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/core/StarImage.cpp
diff options
context:
space:
mode:
authorKae <80987908+Novaenia@users.noreply.github.com>2023-11-24 20:39:41 +1100
committerKae <80987908+Novaenia@users.noreply.github.com>2023-11-24 20:39:41 +1100
commit9bef78a737ca96ef61ca5504f61e73f8ffb013f3 (patch)
tree01329eb3074b733fbd3812438905a893ccae0e14 /source/core/StarImage.cpp
parent994b0fe3cff39a2640d931aa3677f2474863cd47 (diff)
make Image move assignment zero other variables
Diffstat (limited to 'source/core/StarImage.cpp')
-rw-r--r--source/core/StarImage.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/core/StarImage.cpp b/source/core/StarImage.cpp
index ac1fb9a..183b00a 100644
--- a/source/core/StarImage.cpp
+++ b/source/core/StarImage.cpp
@@ -230,9 +230,9 @@ Image& Image::operator=(Image&& image) {
reset(0, 0, m_pixelFormat);
m_data = take(image.m_data);
- m_width = image.m_width;
- m_height = image.m_height;
- m_pixelFormat = image.m_pixelFormat;
+ m_width = take(image.m_width);
+ m_height = take(image.m_height);
+ m_pixelFormat = take(image.m_pixelFormat);
return *this;
}