mirror of
https://github.com/transmission/transmission.git
synced 2025-12-20 02:18:42 +00:00
fix: sonarcloud warnings (#2815)
* fix: add default case to switch statement * fix: remove redundant static specifier * fix: use std::optional.value_or * fix: make type of variable pointer-to-const * refactor: move log state into a struct * refactor: make tr_peerMgr constructor explicit * fix: make type of variable pointer-to-const * fix: replace insert with try_emplace * fix: implicit conversion may lose precision * fix: use init-statement to reduce variable scope * chore: mark unused return value with (void)
This commit is contained in:
@@ -849,7 +849,7 @@ Gtk::ComboBox* new_time_combo(Glib::RefPtr<Session> const& core, tr_quark const
|
||||
return w;
|
||||
}
|
||||
|
||||
static auto get_weekday_string(Glib::Date::Weekday weekday)
|
||||
auto get_weekday_string(Glib::Date::Weekday weekday)
|
||||
{
|
||||
auto date = Glib::Date{};
|
||||
date.set_time_current();
|
||||
|
||||
Reference in New Issue
Block a user