]> git.saurik.com Git - wxWidgets.git/commitdiff
Document the default size of new wxMemoryBuffer correctly.
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 15 Feb 2012 15:39:56 +0000 (15:39 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 15 Feb 2012 15:39:56 +0000 (15:39 +0000)
Documenting it as DefBufSize wasn't really helpful, so just use its value
instead (an alternative would be to document DefBufSize -- with its value --
but it doesn't seem very useful to make it part of the public API).

Closes #13984.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70603 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

interface/wx/buffer.h

index 4ef51bac3bfc6059e613d347123694040f5f28bd..dedb9d755e20bab8c5c2435dff2f5779370def54 100644 (file)
@@ -287,9 +287,9 @@ public:
         Create a new buffer.
 
         @param size
-            size of the new buffer.
+            size of the new buffer, 1KiB by default.
     */
-    wxMemoryBuffer(size_t size = DefBufSize);
+    wxMemoryBuffer(size_t size = 1024);
 
     /**
         Append a single byte to the buffer.