Skip to content

Commit 7741150

Browse files
committed
[WARNING] Warnings resolution.
1 parent 6842acb commit 7741150

1 file changed

Lines changed: 11 additions & 8 deletions

File tree

Launcher.h

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -417,24 +417,27 @@ class Launcher : public PluginHost::IPlugin {
417417
Time()
418418
: _hour(~0)
419419
, _minute(~0)
420-
, _second(~0)
421-
{
420+
, _second(~0) {
422421
}
423422
Time(const string& time)
424423
: _hour(~0)
425424
, _minute(~0)
426-
, _second(~0)
427-
{
425+
, _second(~0) {
428426
Parse(time);
429427
}
430428
Time(const Time& copy)
431429
: _hour(copy._hour)
432430
, _minute(copy._minute)
433-
, _second(copy._second)
434-
{
431+
, _second(copy._second) {
435432
}
436-
~Time ()
437-
{
433+
~Time () = default;
434+
435+
Time& operator= (const Time& rhs) {
436+
_hour = rhs._hour;
437+
_minute = rhs._minute;
438+
_second = rhs._second;
439+
440+
return (*this);
438441
}
439442

440443
static constexpr uint32_t MilliSecondsPerSecond = 1000;

0 commit comments

Comments
 (0)