Resolve [-Wunused-but-set-variable]

This commit is contained in:
Minty-Meeo 2023-03-23 12:56:57 -05:00 committed by get
parent 678c93589a
commit efd06a85d2

View File

@ -70,12 +70,10 @@ std::string SettingsHandler::GetValue(std::string_view key) const
void SettingsHandler::Decrypt() void SettingsHandler::Decrypt()
{ {
const u8* str = m_buffer.data();
while (m_position < m_buffer.size()) while (m_position < m_buffer.size())
{ {
decoded.push_back((u8)(m_buffer[m_position] ^ m_key)); decoded.push_back((u8)(m_buffer[m_position] ^ m_key));
m_position++; m_position++;
str++;
m_key = (m_key >> 31) | (m_key << 1); m_key = (m_key >> 31) | (m_key << 1);
} }