]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/mstream.cpp
use of div_t.quot and div_t.rem were changed to / and %
[wxWidgets.git] / src / common / mstream.cpp
index 04501d5e5d3f1417fae91fba6a9524561c2dfef8..8e81abd394773fa7df8e8db6c2f01e2bb9153b37 100644 (file)
@@ -104,8 +104,8 @@ size_t wxMemoryOutputStream::CopyTo(char *buffer, size_t len) const
   if (!buffer)
     return 0;
 
-  if (len > StreamSize())
-    len = StreamSize();
+  if (len > GetSize())
+    len = GetSize();
 
   memcpy(buffer, m_o_streambuf->GetBufferStart(), len);
   return len;