fix: sonarcloud (#2868)

* refactor: make this variable const

* refactor: replace redundant type with auto

* refactor: use the nullptr literal

* refactor: replace declaration by structured binding declaration
This commit is contained in:
Charles Kerr
2022-04-02 17:42:51 -05:00
committed by GitHub
parent 748d3c2223
commit 76f44b4b6f
27 changed files with 105 additions and 105 deletions
+1 -1
View File
@@ -324,7 +324,7 @@ int tr_main(int argc, char* argv[])
return EXIT_FAILURE;
}
if (options.add == nullptr && options.deleteme == nullptr && options.replace[0] == 0)
if (options.add == nullptr && options.deleteme == nullptr && options.replace[0] == nullptr)
{
fprintf(stderr, "ERROR: Must specify -a, -d or -r\n");
tr_getopt_usage(MyName, Usage, std::data(Options));