diff options
| author | Neil <nyamatongwe@gmail.com> | 2021-03-18 20:20:47 +1100 |
|---|---|---|
| committer | Neil <nyamatongwe@gmail.com> | 2021-03-18 20:20:47 +1100 |
| commit | 088336e91cb2771acd435bcd4646373420f62484 (patch) | |
| tree | 863d4eb386245ca5fe200fb5f2abb0140ca3ad15 /win32/PlatWin.cxx | |
| parent | 6af47b53d52c29474bfc551700f8394dbf1dbc04 (diff) | |
| download | scintilla-mirror-088336e91cb2771acd435bcd4646373420f62484.tar.gz | |
Use unique_ptr to add to RGBAImageSet.
Diffstat (limited to 'win32/PlatWin.cxx')
| -rw-r--r-- | win32/PlatWin.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
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<RGBAImage>(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<RGBAImage>(width, height, 1.0f, pixelsImage)); } void ListBoxX::ClearRegisteredImages() { |
