forked from ShuriZma/suyu
1
0
Fork 0

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.
This commit is contained in:
Lioncash 2018-12-05 02:36:43 -05:00
parent edd9bfd54a
commit 2207baaa04
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ constexpr std::array<u8, 30> WORD_TXT{
VirtualDir NgWord1() { VirtualDir NgWord1() {
std::vector<VirtualFile> files(NgWord1Data::NUMBER_WORD_TXT_FILES); 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()>>( files[i] = std::make_shared<ArrayVfsFile<NgWord1Data::WORD_TXT.size()>>(
NgWord1Data::WORD_TXT, fmt::format("{}.txt", i)); NgWord1Data::WORD_TXT, fmt::format("{}.txt", i));
} }