Apply Clang-Tidy

Use emplace_back instead of push_back
Use 'nullptr'
Use function 'empty ()' instead of 'size () == 0'
Mark single-argument constructors as 'explicit'
Call static function correctly
This commit is contained in:
Thomas Lauf 2022-08-30 11:45:44 +02:00
parent 2535c2c399
commit 9299fd3e39
12 changed files with 27 additions and 27 deletions

View file

@ -605,7 +605,7 @@ bool Rules::setConfigVariable (
{
// Add blank line required by rules.
if (lines.empty () || lines.back ().empty ())
lines.emplace_back("");
lines.emplace_back ("");
// Add new line.
lines.push_back (name + " = " + json::encode (value));
@ -626,7 +626,7 @@ bool Rules::setConfigVariable (
// Add blank line required by rules.
if (lines.empty () || lines.back ().empty ())
lines.emplace_back("");
lines.emplace_back ("");
// Add new line.
lines.push_back (name + " = " + json::encode (value));