mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-24 01:31:46 +00:00
Remove raw pointer deprecation warnings.
See discussion in 2016 beta forums for rationale. Change-Id: I86a4c1bd61655f4895e2fe0e935f25dc8a89d830
This commit is contained in:
@@ -25,11 +25,6 @@ AnalogPotentiometer::AnalogPotentiometer(int channel, double fullRange,
|
||||
* @param offset The angular value (in desired units) representing the angular
|
||||
* output at 0V.
|
||||
*/
|
||||
DEPRECATED(
|
||||
"Raw pointers are deprecated; if you just want to construct an "
|
||||
"AnalogPotentiometer with its own AnalogInput, then call the "
|
||||
"AnalogPotentiometer(int channel). If you want to keep your own copy of "
|
||||
"the AnalogInput, use std::shared_ptr.")
|
||||
AnalogPotentiometer::AnalogPotentiometer(AnalogInput *input, double fullRange,
|
||||
double offset)
|
||||
: m_analog_input(input, NullDeleter<AnalogInput>()),
|
||||
|
||||
Reference in New Issue
Block a user