From d9098786248ceaf77d849297230d79cfc8206579 Mon Sep 17 00:00:00 2001 From: Amos Date: Wed, 8 Jun 2022 14:03:04 +0200 Subject: [PATCH] Optimizations --- r5dev/netconsole/netconsole.cpp | 2 +- r5dev/vpklib/packedstore.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/r5dev/netconsole/netconsole.cpp b/r5dev/netconsole/netconsole.cpp index 9ff8dc98..e35e426c 100644 --- a/r5dev/netconsole/netconsole.cpp +++ b/r5dev/netconsole/netconsole.cpp @@ -121,7 +121,7 @@ void CNetCon::UserInput(void) { std::string svSecondArg = svInput.substr(nPos + 1); std::string svFirstArg = svInput; - svFirstArg = svFirstArg.erase(svFirstArg.find(" ")); + svFirstArg = svFirstArg.erase(svFirstArg.find(' ')); if (strcmp(svFirstArg.c_str(), "PASS") == 0) // Auth with RCON server. { diff --git a/r5dev/vpklib/packedstore.cpp b/r5dev/vpklib/packedstore.cpp index 50049857..5ab2ecfd 100644 --- a/r5dev/vpklib/packedstore.cpp +++ b/r5dev/vpklib/packedstore.cpp @@ -666,7 +666,7 @@ VPKEntryBlock_t::VPKEntryBlock_t(const vector &vData, int64_t nOffset, size_t nDataSize = vData.size(); int64_t nCurrentOffset = nOffset; - for (size_t i = 0; i < nEntryCount; i++) // Fragment data into 1MiB chunks + for (size_t i = 0; i < nEntryCount; i++) // Fragment data into 1 MiB chunks { size_t nSize = std::min(ENTRY_MAX_LEN, nDataSize); nDataSize -= nSize;