Use empty() instead of size() == 0

This commit is contained in:
Alex Beregszaszi
2018-10-09 04:29:37 +01:00
parent 4ab2e03be3
commit fa0ce6a7e7
7 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -509,7 +509,7 @@ Json::Value StandardCompiler::compileInternal(Json::Value const& _input)
bool const compilationSuccess = m_compilerStack.state() == CompilerStack::State::CompilationSuccessful;
/// Inconsistent state - stop here to receive error reports from users
if (!compilationSuccess && (errors.size() == 0))
if (!compilationSuccess && errors.empty())
return formatFatalError("InternalCompilerError", "No error reported, but compilation failed.");
Json::Value output = Json::objectValue;