summaryrefslogtreecommitdiff
path: root/src/image.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-01-03 22:46:53 +0000
committerCarl Hetherington <cth@carlh.net>2015-01-03 22:46:53 +0000
commit65ab64832120305e4e0af745d745c7338470a3fd (patch)
tree53710c35967d6331fe82cffae52ae015036841e2 /src/image.cc
parent7fb85beb1e4b655da0463d7d9c95b1181f5a6f00 (diff)
Reinstate Image::swap.
Diffstat (limited to 'src/image.cc')
-rw-r--r--src/image.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/image.cc b/src/image.cc
index 15f1e589..15ff24dc 100644
--- 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);
+}