From 152a2079b4a54a0f26d8caf2d5929df612786bcd Mon Sep 17 00:00:00 2001 From: PB Date: Tue, 30 Mar 2021 20:16:49 +0200 Subject: [PATCH] Fix example code in wxArtProvider docs Add a missing ampersand to the third parameter of overridden CreateBitmap(), to make it clear it is a reference. Also add semicolons after methods declarations. Closes https://github.com/wxWidgets/wxWidgets/pull/2299 Closes #19125. --- interface/wx/artprov.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/interface/wx/artprov.h b/interface/wx/artprov.h index bc4fe258c4..260f61d218 100644 --- a/interface/wx/artprov.h +++ b/interface/wx/artprov.h @@ -112,11 +112,11 @@ const char* wxART_EDIT; protected: wxBitmap CreateBitmap(const wxArtID& id, const wxArtClient& client, - const wxSize size) + const wxSize& size); // optionally override this one as well wxIconBundle CreateIconBundle(const wxArtID& id, - const wxArtClient& client) + const wxArtClient& client); { ... } }; ...