Skip to content

Commit

Permalink
Improved standard conformance
Browse files Browse the repository at this point in the history
  • Loading branch information
Albert committed Jan 19, 2023
1 parent 482edb8 commit bc2bb27
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/client/windows/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#include <WinSock2.h>
#include <shellapi.h>
#include <Shlobj.h>
#include <cctype>

// enable visual styles for message boxes
#pragma comment(linker,"\"/manifestdependency:type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"")
Expand Down
1 change: 1 addition & 0 deletions src/config/string_iteration.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#pragma once

#include <string>
#include <cctype>

template<typename ForwardIt>
bool skip(ForwardIt* it, ForwardIt end, const char* str) {
Expand Down
2 changes: 1 addition & 1 deletion src/runtime/Stage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,7 @@ void Stage::finish_sequence(ConstKeySequenceRange sequence) {
assert(sequence.begin() == m_sequence.begin());
assert(sequence.size() <= m_sequence.size());
auto length = sequence.size();
for (auto i = 0; i < length; ) {
for (auto i = size_t{ }; i < length; ) {
const auto it = begin(m_sequence) + i;
if (it->state == KeyState::Down || it->state == KeyState::DownMatched) {
if (!contains(it, end(m_sequence), KeyEvent{ it->key, KeyState::Up })) {
Expand Down
2 changes: 1 addition & 1 deletion src/server/windows/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ namespace {
g_sending_key = true;
g_flush_scheduled = false;

auto i = 0;
auto i = size_t{ };
for (; i < g_send_buffer.size(); ++i) {
const auto& event = g_send_buffer[i];
const auto is_first = (i == 0);
Expand Down

0 comments on commit bc2bb27

Please sign in to comment.