mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-06-26 10:54:28 +02:00
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:
parent
2535c2c399
commit
9299fd3e39
12 changed files with 27 additions and 27 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue