diff options
author | Lioncash <mathew1800@gmail.com> | 2018-12-05 02:36:43 -0500 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2018-12-05 02:36:45 -0500 |
commit | 2207baaa04c97730e6eaa184aa4f3c4e6537e0d1 (patch) | |
tree | 8dbc6e040d03bb8f17d9083a9cc3e9f8c380d878 /src | |
parent | edd9bfd54a098f22b2f3c3a75d137cb86ef9a5d0 (diff) |
ng_word: Deduplicate use of a constant value
We've already given the constant to the vector itself, so we don't need
to re-hardcode it in the array.
Diffstat (limited to 'src')
-rw-r--r-- | src/core/file_sys/system_archive/ng_word.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/file_sys/system_archive/ng_word.cpp b/src/core/file_sys/system_archive/ng_word.cpp index d0acdbd49..a24f1e496 100644 --- a/src/core/file_sys/system_archive/ng_word.cpp +++ b/src/core/file_sys/system_archive/ng_word.cpp @@ -26,7 +26,7 @@ constexpr std::array<u8, 30> WORD_TXT{ VirtualDir NgWord1() { std::vector<VirtualFile> files(NgWord1Data::NUMBER_WORD_TXT_FILES); - for (std::size_t i = 0; i < NgWord1Data::NUMBER_WORD_TXT_FILES; ++i) { + for (std::size_t i = 0; i < files.size(); ++i) { files[i] = std::make_shared<ArrayVfsFile<NgWord1Data::WORD_TXT.size()>>( NgWord1Data::WORD_TXT, fmt::format("{}.txt", i)); } |