core_timing: Move clock initializer into constructor initializer list

Same behavior, minus unnecessary zeroing out of the pointer.
This commit is contained in:
Lioncash 2020-08-22 20:24:25 -04:00
parent 2624b1eae6
commit 25cd5d9dda

View file

@ -37,10 +37,8 @@ struct CoreTiming::Event {
}
};
CoreTiming::CoreTiming() {
clock =
Common::CreateBestMatchingClock(Core::Hardware::BASE_CLOCK_RATE, Core::Hardware::CNTFREQ);
}
CoreTiming::CoreTiming()
: clock{Common::CreateBestMatchingClock(Hardware::BASE_CLOCK_RATE, Hardware::CNTFREQ)} {}
CoreTiming::~CoreTiming() = default;