mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-24 01:31:46 +00:00
[wpilibc] ShuffleboardComponent.WithProperties: Update type (#4615)
ShuffleboardComponentBase::m_properties is now a StringMap<nt::Value>.
This commit is contained in:
@@ -37,8 +37,7 @@ class ShuffleboardComponent : public ShuffleboardComponentBase {
|
||||
* @param properties the properties for this component
|
||||
* @return this component
|
||||
*/
|
||||
Derived& WithProperties(
|
||||
const wpi::StringMap<std::shared_ptr<nt::Value>>& properties);
|
||||
Derived& WithProperties(const wpi::StringMap<nt::Value>& properties);
|
||||
|
||||
/**
|
||||
* Sets the position of this component in the tab. This has no effect if this
|
||||
|
||||
@@ -21,7 +21,7 @@ ShuffleboardComponent<Derived>::ShuffleboardComponent(
|
||||
|
||||
template <typename Derived>
|
||||
Derived& ShuffleboardComponent<Derived>::WithProperties(
|
||||
const wpi::StringMap<std::shared_ptr<nt::Value>>& properties) {
|
||||
const wpi::StringMap<nt::Value>& properties) {
|
||||
m_properties = properties;
|
||||
m_metadataDirty = true;
|
||||
return *static_cast<Derived*>(this);
|
||||
|
||||
Reference in New Issue
Block a user