lucy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nwelln...@apache.org
Subject [16/19] lucy-clownfish git commit: Default size for CharBuf constructor
Date Fri, 20 Nov 2015 14:05:37 GMT
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 <wellnhofer@aevum.de>
Authored: Sun Nov 15 15:50:09 2015 +0100
Committer: Nick Wellnhofer <wellnhofer@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.
      */


Mime
View raw message