]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/mstream.cpp
wxListBox::FindString(): it's not an error if the string is not found, so
[wxWidgets.git] / src / common / mstream.cpp
index 9e1ee174f29feaba8078f4d9ea41108d5e787d6f..7f72e82db47c3e7913367ffc62cc817280b0a768 100644 (file)
@@ -75,6 +75,13 @@ wxMemoryInputStream::~wxMemoryInputStream()
 {
 }
 
+char wxMemoryInputStream::Peek()
+{
+   // wxStreamBuffer is disabled so just peek the current character.
+
+   return m_buffer[m_position_i];
+}
+
 size_t wxMemoryInputStream::DoRead(void *buffer, size_t size)
 {
   if (m_iolimit == 2) {