-
Notifications
You must be signed in to change notification settings - Fork 557
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use std::optional instead of nullptr checking (#2454)
* Make object_types_ variable as optional data * Made changes as per suggestions - Still some work left, might be able to make better use of value_or() function * formatting by pre-commit * using the default reset() function for std::optional * Added extra guard while dereferencing * Assigned values to optional using value_or() function * Assigning values to empty optionals using emplace() function * Fixed clang-format warnings * Wrapped acm_ in optional * Wrapped robot_state_ in optional * Wrapped scene_transforms__ in optional * Changed object_types_, acm_ and robot_state_ to values instead of pointers * applied clang-tidy changes
- Loading branch information
1 parent
53627d3
commit 358ec63
Showing
2 changed files
with
96 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.