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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user