17
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-10-29 01:07:28 +01:00

refactor: change typedef, nullptr, scoped_lock and others

This commit is contained in:
jerrrrycho
2026-09-27 19:31:00 +02:00
parent 8fbb482350
commit b8c9724ca3
42 changed files with 186 additions and 186 deletions

View File

@@ -103,7 +103,7 @@ std::vector<std::string> scenarioloader_ui::get_random_trivia()
}
// Find byte position corresponding to character count
auto get_byte_pos_for_char_count = [&](const std::string& str, size_t char_count) -> size_t {
auto get_byte_pos_for_char_count = [&](const std::string& str, size_t char_count) {
size_t byte_pos = 0;
size_t current_chars = 0;
for (size_t i = 0; i < str.length() && current_chars < char_count; )