]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/xpmdecod.cpp
Should only add // under MSW -- not on Unix, not on Mac.
[wxWidgets.git] / src / common / xpmdecod.cpp
index e2aaefa573c15b723db4de48c251b3bd96ab0a45..ad80cbf883336daec3dc5426bd3528a87c6a2937 100644 (file)
@@ -143,7 +143,7 @@ wxImage wxXPMDecoder::ReadFile(wxInputStream& stream)
     wxCharBuffer buffer(length);
 
     char *xpm_buffer = (char *)buffer.data();
-    if ( stream.Read(xpm_buffer, length).LastError() == wxSTREAM_READ_ERROR )
+    if ( stream.Read(xpm_buffer, length).GetLastError() == wxSTREAM_READ_ERROR )
         return wxNullImage;
     xpm_buffer[length] = '\0';
 
@@ -657,7 +657,7 @@ struct wxXPMColourMapData
 {
     unsigned char R,G,B;
 };
-WX_DECLARE_STRING_HASH_MAP(wxXPMColourMapData, wxXPMColourMap)
+WX_DECLARE_STRING_HASH_MAP(wxXPMColourMapData, wxXPMColourMap);
 
 wxImage wxXPMDecoder::ReadData(const char **xpm_data)
 {