From 088336e91cb2771acd435bcd4646373420f62484 Mon Sep 17 00:00:00 2001 From: Neil Date: Thu, 18 Mar 2021 20:20:47 +1100 Subject: Use unique_ptr to add to RGBAImageSet. --- src/XPM.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/XPM.h') diff --git a/src/XPM.h b/src/XPM.h index 1f72ba738..cacae9b8a 100644 --- a/src/XPM.h +++ b/src/XPM.h @@ -88,7 +88,7 @@ public: /// Remove all images. void Clear() noexcept; /// Add an image. - void Add(int ident, RGBAImage *image); + void AddImage(int ident, std::unique_ptr image); /// Get image by id. RGBAImage *Get(int ident); /// Give the largest height of the set. -- cgit v1.2.3