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. --- win32/PlatWin.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'win32') diff --git a/win32/PlatWin.cxx b/win32/PlatWin.cxx index fc4d56cf1..2ad3e2f7b 100644 --- a/win32/PlatWin.cxx +++ b/win32/PlatWin.cxx @@ -2728,11 +2728,11 @@ void ListBoxX::GetValue(int n, char *value, int len) { void ListBoxX::RegisterImage(int type, const char *xpm_data) { XPM xpmImage(xpm_data); - images.Add(type, new RGBAImage(xpmImage)); + images.AddImage(type, std::make_unique(xpmImage)); } void ListBoxX::RegisterRGBAImage(int type, int width, int height, const unsigned char *pixelsImage) { - images.Add(type, new RGBAImage(width, height, 1.0, pixelsImage)); + images.AddImage(type, std::make_unique(width, height, 1.0f, pixelsImage)); } void ListBoxX::ClearRegisteredImages() { -- cgit v1.2.3