projects
/
libdcp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7fb85be
)
Reinstate Image::swap.
author
Carl Hetherington
<cth@carlh.net>
Sat, 3 Jan 2015 22:46:53 +0000
(22:46 +0000)
committer
Carl Hetherington
<cth@carlh.net>
Sat, 3 Jan 2015 22:46:53 +0000
(22:46 +0000)
src/image.cc
patch
|
blob
|
history
src/image.h
patch
|
blob
|
history
diff --git
a/src/image.cc
b/src/image.cc
index 15f1e58919937eb115ed0a6149739b91d7cfee9b..15ff24dc011a04b175b9a69533afc57454564b63 100644
(file)
--- a/
src/image.cc
+++ b/
src/image.cc
@@
-39,3
+39,9
@@
Image::Image (boost::shared_ptr<const Image> other)
{
}
+
+void
+Image::swap (Image& other)
+{
+ std::swap (_size, other._size);
+}
diff --git
a/src/image.h
b/src/image.h
index 9e85101ac5338cc67c99d58ef950de11f7ed91b5..81458021c4ec522079ec99e8ef288bc4e3fa4a3d 100644
(file)
--- a/
src/image.h
+++ b/
src/image.h
@@
-38,6
+38,8
@@
public:
}
protected:
+ void swap (Image& other);
+
Size _size;
};