[wpilibc] ShuffleboardComponent.WithProperties: Update type (#4615)

ShuffleboardComponentBase::m_properties is now a StringMap<nt::Value>.
This commit is contained in:
Peter Johnson
2022-11-11 15:08:05 -08:00
committed by GitHub
parent 7836f661cd
commit b0f6dc199d
2 changed files with 2 additions and 3 deletions

View File

@@ -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

View File

@@ -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);