diff options
| author | Mikaël Capelle <capelle.mikael@gmail.com> | 2020-05-24 23:33:21 +0200 |
|---|---|---|
| committer | Mikaël Capelle <capelle.mikael@gmail.com> | 2020-05-24 23:33:21 +0200 |
| commit | 238e233c18d22d01e966efaa86975f5f37bb7fa2 (patch) | |
| tree | 3c4eb7af80d4e47fa85f296e5c5aafbed0b5e415 /src/modinforegular.cpp | |
| parent | 0aac4f3291d65ebc1b0bbee744fca347ecef7022 (diff) | |
Use memoization for file tree, contents and validity of ModInfo.
Diffstat (limited to 'src/modinforegular.cpp')
| -rw-r--r-- | src/modinforegular.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/modinforegular.cpp b/src/modinforegular.cpp index 87483a64..d8e42383 100644 --- a/src/modinforegular.cpp +++ b/src/modinforegular.cpp @@ -653,7 +653,7 @@ std::vector<ModInfo::EFlag> ModInfoRegular::getFlags() const } -std::vector<ModInfo::EContent> ModInfoRegular::getContents() const +std::vector<ModInfo::EContent> ModInfoRegular::doGetContents() const { auto tree = contentFileTree(); std::vector<ModInfo::EContent> contents; @@ -707,7 +707,6 @@ std::vector<ModInfo::EContent> ModInfoRegular::getContents() const } return contents; - } |
