mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-23 01:21:42 +00:00
Remove raw pointer deprecation warnings.
See discussion in 2016 beta forums for rationale. Change-Id: I86a4c1bd61655f4895e2fe0e935f25dc8a89d830
This commit is contained in:
@@ -53,16 +53,8 @@ class Encoder : public SensorBase,
|
||||
Encoder(std::shared_ptr<DigitalSource> aSource,
|
||||
std::shared_ptr<DigitalSource> bSource,
|
||||
bool reverseDirection = false, EncodingType encodingType = k4X);
|
||||
DEPRECATED(
|
||||
"Raw pointers are deprecated; if you wish to construct your own copy of "
|
||||
"the DigitalSource and pass it to the constructor, use an "
|
||||
"std::shared_ptr instead.")
|
||||
Encoder(DigitalSource *aSource, DigitalSource *bSource,
|
||||
bool reverseDirection = false, EncodingType encodingType = k4X);
|
||||
DEPRECATED(
|
||||
"References are deprecated; if you wish to construct your own copy of "
|
||||
"the DigitalSource and pass it to the constructor, use an "
|
||||
"std::shared_ptr instead.")
|
||||
Encoder(DigitalSource &aSource, DigitalSource &bSource,
|
||||
bool reverseDirection = false, EncodingType encodingType = k4X);
|
||||
virtual ~Encoder();
|
||||
@@ -87,7 +79,7 @@ class Encoder : public SensorBase,
|
||||
double PIDGet() override;
|
||||
|
||||
void SetIndexSource(uint32_t channel, IndexingType type = kResetOnRisingEdge);
|
||||
DEPRECATED("Raw pointers are deprecated; use references instead.")
|
||||
DEPRECATED("Use pass-by-reference instead.")
|
||||
void SetIndexSource(DigitalSource *source,
|
||||
IndexingType type = kResetOnRisingEdge);
|
||||
void SetIndexSource(const DigitalSource &source,
|
||||
|
||||
Reference in New Issue
Block a user