Default size for CharBuf constructor

Project: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/commit/b36a997f
Tree: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/tree/b36a997f
Diff: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/diff/b36a997f

Branch: refs/heads/master
Commit: b36a997fa81e2f8784edf9127abc0751f33f7a33
Parents: 41a2c22
Author: Nick Wellnhofer <wellnho...@aevum.de>
Authored: Sun Nov 15 15:50:09 2015 +0100
Committer: Nick Wellnhofer <wellnho...@aevum.de>
Committed: Tue Nov 17 19:08:43 2015 +0100

----------------------------------------------------------------------
 runtime/core/Clownfish/CharBuf.cfh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucy-clownfish/blob/b36a997f/runtime/core/Clownfish/CharBuf.cfh
----------------------------------------------------------------------
diff --git a/runtime/core/Clownfish/CharBuf.cfh 
b/runtime/core/Clownfish/CharBuf.cfh
index c007cff..e8a2e60 100644
--- a/runtime/core/Clownfish/CharBuf.cfh
+++ b/runtime/core/Clownfish/CharBuf.cfh
@@ -28,10 +28,10 @@ public final class Clownfish::CharBuf nickname CB
     size_t   cap;  /* allocated bytes, including terminating null */
 
     public inert incremented CharBuf*
-    new(size_t size);
+    new(size_t size = 0);
 
     public inert CharBuf*
-    init(CharBuf *self, size_t size);
+    init(CharBuf *self, size_t size = 0);
 
     /** Concatenate the passed-in string onto the end of the CharBuf.
      */

Reply via email to