mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-12 16:23:07 -07:00
Replace C-style casts with C++ ones
This commit is contained in:
parent
e3671050d1
commit
74cecb1b6c
20 changed files with 41 additions and 39 deletions
|
@ -406,12 +406,12 @@ void Preferences::setSchedulerEndTime(const QTime &time)
|
|||
|
||||
scheduler_days Preferences::getSchedulerDays() const
|
||||
{
|
||||
return (scheduler_days)value("Preferences/Scheduler/days", EVERY_DAY).toInt();
|
||||
return static_cast<scheduler_days>(value("Preferences/Scheduler/days", EVERY_DAY).toInt());
|
||||
}
|
||||
|
||||
void Preferences::setSchedulerDays(scheduler_days days)
|
||||
{
|
||||
setValue("Preferences/Scheduler/days", (int)days);
|
||||
setValue("Preferences/Scheduler/days", static_cast<int>(days));
|
||||
}
|
||||
|
||||
// Search
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue