@@ -105,13 +105,13 @@ void MainWindow::changeSettings()
105105
106106void MainWindow::onTimeRecieved (WidgetSettings settings)
107107{
108- auto *newTimer = new TimerWidget (settings, this );
108+ auto *newTimer = new TimerWidget (std::move ( settings) , this );
109109
110110 timerScrollWidget->layout ()->addWidget (newTimer);
111111
112112 connect (newTimer, SIGNAL (del (const TimerWidget*)), this , SLOT (remove (const TimerWidget*)));
113113 connect (newTimer, SIGNAL (timerFinished ()), this , SLOT (onTimerFinished ()));
114- connect (newTimer, SIGNAL (blinkInfo (QString, bool )), this , SLOT (tabBlinking (QString,bool )));
114+ connect (newTimer, SIGNAL (blinkInfo (QString,bool )), this , SLOT (tabBlinking (QString,bool )));
115115
116116 timersList.append (newTimer);
117117 newTimer->updateWidget (Settings);
@@ -144,12 +144,12 @@ void MainWindow::onTimerFinished()
144144
145145void MainWindow::onAlarmTimeRecieved (WidgetSettings settings)
146146{
147- auto *newAlarm = new alertwidget (settings, this );
147+ auto *newAlarm = new alertwidget (std::move ( settings) , this );
148148
149149 alarmScrollWidget->layout ()->addWidget (newAlarm);
150150
151151 connect (newAlarm, SIGNAL (del (const alertwidget*)), this , SLOT (remove (const alertwidget*)));
152- connect (newAlarm, SIGNAL (blinkInfo (QString, bool )), this , SLOT (tabBlinking (QString,bool )));
152+ connect (newAlarm, SIGNAL (blinkInfo (QString,bool )), this , SLOT (tabBlinking (QString,bool )));
153153
154154
155155 alarmsList.append (newAlarm);
@@ -159,7 +159,7 @@ void MainWindow::onAlarmTimeRecieved(WidgetSettings settings)
159159
160160void MainWindow::onSettingsRecieved (GlobalSettings settings)
161161{
162- Settings = settings;
162+ Settings = std::move ( settings) ;
163163
164164 this ->setWindowOpacity (Settings.windowOpacity );
165165
@@ -169,7 +169,7 @@ void MainWindow::onSettingsRecieved(GlobalSettings settings)
169169// TODO: here
170170// update settings handler
171171
172- void MainWindow::tabBlinking (QString tabName, bool enable)
172+ void MainWindow::tabBlinking (const QString & tabName, bool enable)
173173{
174174 if (enable)
175175 {
0 commit comments