diff options
| author | 2018-12-05 02:36:43 -0500 | |
|---|---|---|
| committer | 2018-12-05 02:36:45 -0500 | |
| commit | 2207baaa04c97730e6eaa184aa4f3c4e6537e0d1 (patch) | |
| tree | 8dbc6e040d03bb8f17d9083a9cc3e9f8c380d878 /src | |
| parent | system_archive: Use a regular function pointer instead of std::function for f... (diff) | |
| download | yuzu-2207baaa04c97730e6eaa184aa4f3c4e6537e0d1.tar.gz yuzu-2207baaa04c97730e6eaa184aa4f3c4e6537e0d1.tar.xz yuzu-2207baaa04c97730e6eaa184aa4f3c4e6537e0d1.zip | |
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{ | |||
| 26 | VirtualDir NgWord1() { | 26 | VirtualDir NgWord1() { |
| 27 | std::vector<VirtualFile> files(NgWord1Data::NUMBER_WORD_TXT_FILES); | 27 | std::vector<VirtualFile> files(NgWord1Data::NUMBER_WORD_TXT_FILES); |
| 28 | 28 | ||
| 29 | for (std::size_t i = 0; i < NgWord1Data::NUMBER_WORD_TXT_FILES; ++i) { | 29 | for (std::size_t i = 0; i < files.size(); ++i) { |
| 30 | files[i] = std::make_shared<ArrayVfsFile<NgWord1Data::WORD_TXT.size()>>( | 30 | files[i] = std::make_shared<ArrayVfsFile<NgWord1Data::WORD_TXT.size()>>( |
| 31 | NgWord1Data::WORD_TXT, fmt::format("{}.txt", i)); | 31 | NgWord1Data::WORD_TXT, fmt::format("{}.txt", i)); |
| 32 | } | 32 | } |