]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/gifdecod.cpp
No real changes, just fix a typo in comments and documentation.
[wxWidgets.git] / src / common / gifdecod.cpp
index 76450239a3894b512a9a11e600f15dd40d65ada2..27669b8d2a7b8271cccd565ff580b78da92d469e 100644 (file)
@@ -575,16 +575,13 @@ as an End of Information itself)
 // CanRead:
 //  Returns true if the file looks like a valid GIF, false otherwise.
 //
-bool wxGIFDecoder::CanRead(wxInputStream &stream) const
+bool wxGIFDecoder::DoCanRead(wxInputStream &stream) const
 {
     unsigned char buf[3];
 
     if ( !stream.Read(buf, WXSIZEOF(buf)) )
         return false;
 
-    if (stream.SeekI(-(wxFileOffset)WXSIZEOF(buf), wxFromCurrent) == wxInvalidOffset)
-        return false;       // this happens e.g. for non-seekable streams
-
     return memcmp(buf, "GIF", WXSIZEOF(buf)) == 0;
 }