diff --git a/wpilibc/src/main/native/cpp/shuffleboard/ShuffleboardContainer.cpp b/wpilibc/src/main/native/cpp/shuffleboard/ShuffleboardContainer.cpp index bb9dc9e93c..328891dd68 100644 --- a/wpilibc/src/main/native/cpp/shuffleboard/ShuffleboardContainer.cpp +++ b/wpilibc/src/main/native/cpp/shuffleboard/ShuffleboardContainer.cpp @@ -47,7 +47,7 @@ ShuffleboardLayout& ShuffleboardContainer::GetLayout(const wpi::Twine& title, wpi::SmallVector storage; auto titleRef = title.toStringRef(storage); if (m_layouts.count(titleRef) == 0) { - auto layout = std::make_unique(*this, type, titleRef); + auto layout = std::make_unique(*this, titleRef, type); auto ptr = layout.get(); m_components.emplace_back(std::move(layout)); m_layouts.insert(std::make_pair(titleRef, ptr)); diff --git a/wpilibc/src/main/native/cpp/shuffleboard/ShuffleboardLayout.cpp b/wpilibc/src/main/native/cpp/shuffleboard/ShuffleboardLayout.cpp index 8418b776e6..01e79a5aac 100644 --- a/wpilibc/src/main/native/cpp/shuffleboard/ShuffleboardLayout.cpp +++ b/wpilibc/src/main/native/cpp/shuffleboard/ShuffleboardLayout.cpp @@ -1,5 +1,5 @@ /*----------------------------------------------------------------------------*/ -/* Copyright (c) 2018 FIRST. All Rights Reserved. */ +/* Copyright (c) 2018-2019 FIRST. All Rights Reserved. */ /* Open Source Software - may be modified and shared by FRC teams. The code */ /* must be accompanied by the FIRST BSD license file in the root directory of */ /* the project. */ @@ -10,11 +10,11 @@ using namespace frc; ShuffleboardLayout::ShuffleboardLayout(ShuffleboardContainer& parent, - const wpi::Twine& name, + const wpi::Twine& title, const wpi::Twine& type) - : ShuffleboardValue(type), - ShuffleboardComponent(parent, type, name), - ShuffleboardContainer(name) { + : ShuffleboardValue(title), + ShuffleboardComponent(parent, title, type), + ShuffleboardContainer(title) { m_isLayout = true; } diff --git a/wpilibj/src/main/java/edu/wpi/first/wpilibj/shuffleboard/ContainerHelper.java b/wpilibj/src/main/java/edu/wpi/first/wpilibj/shuffleboard/ContainerHelper.java index a18e4c8c27..2656137468 100644 --- a/wpilibj/src/main/java/edu/wpi/first/wpilibj/shuffleboard/ContainerHelper.java +++ b/wpilibj/src/main/java/edu/wpi/first/wpilibj/shuffleboard/ContainerHelper.java @@ -44,7 +44,7 @@ final class ContainerHelper { ShuffleboardLayout getLayout(String title, String type) { if (!m_layouts.containsKey(title)) { - ShuffleboardLayout layout = new ShuffleboardLayout(m_container, type, title); + ShuffleboardLayout layout = new ShuffleboardLayout(m_container, title, type); m_components.add(layout); m_layouts.put(title, layout); } diff --git a/wpilibj/src/main/java/edu/wpi/first/wpilibj/shuffleboard/ShuffleboardLayout.java b/wpilibj/src/main/java/edu/wpi/first/wpilibj/shuffleboard/ShuffleboardLayout.java index 8f3014a3ee..61fc5d4407 100644 --- a/wpilibj/src/main/java/edu/wpi/first/wpilibj/shuffleboard/ShuffleboardLayout.java +++ b/wpilibj/src/main/java/edu/wpi/first/wpilibj/shuffleboard/ShuffleboardLayout.java @@ -26,8 +26,8 @@ public class ShuffleboardLayout extends ShuffleboardComponent