summaryrefslogtreecommitdiff
path: root/src
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
parent7fb85beb1e4b655da0463d7d9c95b1181f5a6f00 (diff)
Reinstate Image::swap.
Diffstat (limited to 'src')
-rw-r--r--src/image.cc6
-rw-r--r--src/image.h2
2 files changed, 8 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);
+}
diff --git a/src/image.h b/src/image.h
index 9e85101a..81458021 100644
--- a/src/image.h
+++ b/src/image.h
@@ -38,6 +38,8 @@ public:
}
protected:
+ void swap (Image& other);
+
Size _size;
};