]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/xpmdecod.cpp
Traditional Chinese translations update from Wei-Lun Chao.
[wxWidgets.git] / src / common / xpmdecod.cpp
index 8d38a3132ef1ebb4bcbfca7c9b24d892fadd3ae4..744a5db1e868d39e4fc6d9f2f6d0b40771bbf003 100644 (file)
@@ -122,8 +122,6 @@ bool wxXPMDecoder::CanRead(wxInputStream& stream)
     if ( !stream.Read(buf, WXSIZEOF(buf)) )
         return false;
 
-    stream.SeekI(-(wxFileOffset)WXSIZEOF(buf), wxFromCurrent);
-
     return memcmp(buf, "/* XPM */", WXSIZEOF(buf)) == 0;
 }
 
@@ -620,7 +618,7 @@ static bool GetRGBFromName(const char *inname, bool *isNone,
 
 static const char *ParseColor(const char *data)
 {
-    static const char *targets[] =
+    static const char *const targets[] =
                         {"c ", "g ", "g4 ", "m ", "b ", "s ", NULL};
 
     const char *p, *r;