summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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;
};