Allow forwarding of flat-/proto buffer input (#1471)

* Typo

* Address compiler Warnings

* Allow forwarding of flat-/proto buffer input
This commit is contained in:
LordGrey
2022-05-29 17:47:08 +02:00
committed by GitHub
parent 7c76322215
commit ec496ed457
15 changed files with 792 additions and 735 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -279,7 +279,7 @@ int LedDeviceRazer::write(const std::vector<ColorRgb>& ledValues)
for (int col = 0; col < _maxColumn; col++) {
int pos = row * _maxColumn + col;
int bgrColor;
if (pos < ledValues.size())
if (pos < static_cast<int>(ledValues.size()))
{
bgrColor = (ledValues[pos].red * 65536) + (ledValues[pos].green * 256) + ledValues[pos].blue;
}

View File

@@ -14,8 +14,6 @@
// Constants
namespace {
bool verbose = false;
const QChar ONE_SLASH = '/';
const int HTTP_STATUS_NO_CONTENT = 204;