diff options
| author | gingerBill <bill@gingerbill.org> | 2023-01-14 12:33:42 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2023-01-14 12:33:42 +0000 |
| commit | 1ab90de4931f07ea61b1195de602f282a853568b (patch) | |
| tree | 1e5ef6379eeefc1fed8da78948bd6d38e472bdfb /src/docs_writer.cpp | |
| parent | 1064bcd0602c9ff86e2a304ecb46b8d86bb07d52 (diff) | |
Minimize `StringMap` structure usage
Diffstat (limited to 'src/docs_writer.cpp')
| -rw-r--r-- | src/docs_writer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/docs_writer.cpp b/src/docs_writer.cpp index 2aefe29eb..ea0946153 100644 --- a/src/docs_writer.cpp +++ b/src/docs_writer.cpp @@ -977,7 +977,7 @@ gb_internal OdinDocArray<OdinDocScopeEntry> odin_doc_add_pkg_entries(OdinDocWrit defer (array_free(&entries)); for (auto const &element : pkg->scope->elements) { - String name = element.key.string; + String name = element.key; Entity *e = element.value; switch (e->kind) { case Entity_Invalid: @@ -1016,7 +1016,7 @@ gb_internal OdinDocArray<OdinDocScopeEntry> odin_doc_add_pkg_entries(OdinDocWrit gb_internal void odin_doc_write_docs(OdinDocWriter *w) { - auto pkgs = array_make<AstPackage *>(heap_allocator(), 0, w->info->packages.entries.count); + auto pkgs = array_make<AstPackage *>(heap_allocator(), 0, w->info->packages.count); defer (array_free(&pkgs)); for (auto const &entry : w->info->packages) { AstPackage *pkg = entry.value; |