Merge pull request #7798 from ShFil119/impr/empty

Use empty instead of size
This commit is contained in:
Tilka 2019-02-13 01:59:43 +00:00 committed by GitHub
commit 8d59d1bb11
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
28 changed files with 56 additions and 56 deletions

View file

@ -126,7 +126,7 @@ ciface::Core::Device::Control* InputReference::Detect(const unsigned int ms,
unsigned int time = 0;
std::vector<bool> states(device->Inputs().size());
if (device->Inputs().size() == 0)
if (device->Inputs().empty())
return nullptr;
// get starting state of all inputs,