mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-05 03:21:42 +00:00
Replace std::make_pair with std::pair CTAD (#7405)
This commit is contained in:
@@ -50,7 +50,7 @@ ShuffleboardLayout& ShuffleboardContainer::GetLayout(std::string_view title,
|
||||
auto layout = std::make_unique<ShuffleboardLayout>(*this, title, type);
|
||||
auto ptr = layout.get();
|
||||
m_components.emplace_back(std::move(layout));
|
||||
m_layouts.insert(std::make_pair(title, ptr));
|
||||
m_layouts.insert(std::pair{title, ptr});
|
||||
}
|
||||
return *m_layouts[title];
|
||||
}
|
||||
|
||||
@@ -83,7 +83,7 @@ class WPILibCameraServerShared : public frc::CameraServerShared {
|
||||
ReportErrorV(err::Error, __FILE__, __LINE__, __FUNCTION__, format, args);
|
||||
}
|
||||
std::pair<std::thread::id, bool> GetRobotMainThreadId() const override {
|
||||
return std::make_pair(RobotBase::GetThreadId(), true);
|
||||
return std::pair{RobotBase::GetThreadId(), true};
|
||||
}
|
||||
};
|
||||
class WPILibMathShared : public wpi::math::MathShared {
|
||||
|
||||
Reference in New Issue
Block a user