mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-22 01:11:42 +00:00
Upgraded clang-format to 5.0 (#431)
This commit is contained in:
committed by
Peter Johnson
parent
0001047b8b
commit
0c83cad70c
@@ -84,8 +84,9 @@ IndexedClassedHandleResource<THandle, TStruct, size, enumValue>::Allocate(
|
||||
|
||||
template <typename THandle, typename TStruct, int16_t size,
|
||||
HAL_HandleEnum enumValue>
|
||||
std::shared_ptr<TStruct> IndexedClassedHandleResource<
|
||||
THandle, TStruct, size, enumValue>::Get(THandle handle) {
|
||||
std::shared_ptr<TStruct>
|
||||
IndexedClassedHandleResource<THandle, TStruct, size, enumValue>::Get(
|
||||
THandle handle) {
|
||||
// get handle index, and fail early if index out of range or wrong handle
|
||||
int16_t index = getHandleTypedIndex(handle, enumValue, m_version);
|
||||
if (index < 0 || index >= size) {
|
||||
|
||||
Reference in New Issue
Block a user