File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
generate/templates/manual Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ class StrArrayConverter {
1616 private:
1717 static git_strarray *ConvertArray (Array *val);
1818 static git_strarray *ConvertString (Handle<String> val);
19+ static git_strarray *AllocStrArray (const size_t count);
1920 static git_strarray *ConstructStrArray (int argc, char ** argv);
2021};
2122
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ git_strarray *StrArrayConverter::Convert(Handle<v8::Value> val) {
2424 }
2525}
2626
27- static git_strarray * AllocGitStrArray (const size_t count) {
27+ static git_strarray * StrArrayConverter::AllocStrArray (const size_t count) {
2828 const size_t size = sizeof (git_strarray) + (sizeof (char *) * count);
2929 uint8_t * memory = reinterpret_cast <uint8_t *>(malloc (size));
3030 git_strarray *result = reinterpret_cast <git_strarray *>(memory);
@@ -34,7 +34,7 @@ static git_strarray * AllocGitStrArray(const size_t count) {
3434}
3535
3636git_strarray *StrArrayConverter::ConvertArray (Array *val) {
37- git_strarray *result = AllocGitStrArray (val->Length ());
37+ git_strarray *result = AllocStrArray (val->Length ());
3838
3939 for (size_t i = 0 ; i < result->count ; i++) {
4040 NanUtf8String entry (val->Get (i));
@@ -54,7 +54,7 @@ git_strarray* StrArrayConverter::ConvertString(Handle<String> val) {
5454}
5555
5656git_strarray *StrArrayConverter::ConstructStrArray (int argc, char ** argv) {
57- git_strarray *result = AllocGitStrArray (argc);
57+ git_strarray *result = AllocStrArray (argc);
5858
5959 for (size_t i = 0 ; i < result->count ; i++) {
6060 result->strings [i] = strdup (argv[i]);
You can’t perform that action at this time.
0 commit comments