mirror of
https://github.com/transmission/transmission.git
synced 2025-12-26 13:21:44 +00:00
fix: sonarcloud (#2860)
* fix: break will never be executed * fix: rewrite rimraf() to be non-throwing * fix: conditional operation returns same value whether condition is true or false * fix: use std::array instead of a C-style array * fix: remove redundant access specifier * fix: replace switch with if for readability * fix: convert integer literal to a bool literal * fix: replace const std::string reference to std::string_view * fix: remove redundant access specifier * fix: replace const std::string reference to std::string_view * fix: remove unused parameter * fix: remove redundant access specifier * fix: use std::array instead of C-style array * fix: remove redundant access specifier * fix: replace const std::string reference with std::string_view * fix: remove redundant access specifier * fix: use std::array instead of C-style array * fix: remove redundant access specifier * fix: replace const std::string reference to std::string_view * fix: remove redundant access specifier * fix: merge if statement with enclosing one * chore: clang-format * chore: clang-format * Revert "fix: remove redundant access specifier" This reverts commit054e4e7eec. * Revert "fix: remove redundant access specifier" This reverts commit2c92f227e8. * Revert "fix: remove redundant access specifier" This reverts commita0710202a8. * Revert "fix: remove redundant access specifier" This reverts commit54da1d9397. * Revert "fix: remove redundant access specifier" This reverts commitf7b1777578. * Revert "fix: remove redundant access specifier" This reverts commitad8e3dfff4. * chore: revert access specifier change
This commit is contained in:
@@ -321,7 +321,7 @@ int tr_main(int argc, char* argv[])
|
||||
{
|
||||
char line[LineWidth];
|
||||
tr_stat const* st;
|
||||
char const* messageName[] = {
|
||||
static auto constexpr messageName = std::array<char const*, 4>{
|
||||
nullptr,
|
||||
"Tracker gave a warning:",
|
||||
"Tracker gave an error:",
|
||||
|
||||
Reference in New Issue
Block a user