1
0
mirror of https://github.com/TomHarte/CLK.git synced 2026-04-21 02:17:08 +00:00

Embraces std::make_[unique/shared] in place of .reset(new .

This commit is contained in:
Thomas Harte
2019-12-23 21:31:46 -05:00
parent ac604b30f3
commit 0dae608da5
40 changed files with 86 additions and 68 deletions
+1 -1
View File
@@ -67,7 +67,7 @@ void Controller::set_expected_bit_length(Time bit_length) {
// this conversion doesn't need to be exact because there's a lot of variation to be taken
// account of in rotation speed, air turbulence, etc, so a direct conversion will do
int clocks_per_bit = cycles_per_bit.get<int>();
pll_.reset(new DigitalPhaseLockedLoop(clocks_per_bit, 3));
pll_ = std::make_unique<DigitalPhaseLockedLoop>(clocks_per_bit, 3);
pll_->set_delegate(this);
}