X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c0c133e13b36a923c65f94499554e432bc3a0daa..125e7c11c16f23daa4c594f3b8d90194099c2394:/include/wx/convauto.h diff --git a/include/wx/convauto.h b/include/wx/convauto.h index b3dde4c73a..3a2e2e4809 100644 --- a/include/wx/convauto.h +++ b/include/wx/convauto.h @@ -75,6 +75,7 @@ private: // all currently recognized BOM values enum BOMType { + BOM_Unknown = -1, BOM_None, BOM_UTF32BE, BOM_UTF32LE, @@ -107,7 +108,10 @@ private: // create the correct conversion object for the BOM present in the // beginning of the buffer; adjust the buffer to skip the BOM if found - void InitFromInput(const char **src, size_t *len); + // + // return false if the buffer is too short to allow us to determine if we + // have BOM or not + bool InitFromInput(const char **src, size_t *len); // adjust src and len to skip over the BOM (identified by m_bomType) at the // start of the buffer