X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0fa784572f2324fe246158d8eec9492fac604483..b72aa48cdeca3530ffb6ac5af438835d58bf79d9:/src/common/image.cpp diff --git a/src/common/image.cpp b/src/common/image.cpp index d4f9ddac8c..a18a4473bb 100644 --- a/src/common/image.cpp +++ b/src/common/image.cpp @@ -131,6 +131,7 @@ wxImage::wxImage( wxInputStream& stream, const wxString& mimetype, int index ) #endif // wxUSE_STREAMS wxImage::wxImage( const wxImage& image ) + : wxObject() { Ref(image); } @@ -1014,7 +1015,7 @@ int wxImage::GetImageCount( const wxString &name, long type ) bool wxImage::CanRead( wxInputStream &stream ) { - wxList &list=GetHandlers(); + const wxList& list = GetHandlers(); for ( wxList::Node *node = list.GetFirst(); node; node = node->GetNext() ) {