Skip to content

Commit

Permalink
[SymForce] Replace empty ctor with =default in factor and values
Browse files Browse the repository at this point in the history
Topic: chaoqu_symforce_default_ctor
GitOrigin-RevId: a4a8b9d942c5efdb54ea7b131d0adcdc1ef90c44
  • Loading branch information
chao-qu-skydio authored and aaron-skydio committed Apr 21, 2023
1 parent 82d3a1a commit 3cc6061
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion symforce/opt/factor.h
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ class Factor {
// Constructors
// ----------------------------------------------------------------------------------------------

Factor() {}
Factor() = default;

/**
* Create directly from a (dense/sparse) hessian functor. This is the lowest-level constructor.
Expand Down
3 changes: 0 additions & 3 deletions symforce/opt/values.cc
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@

namespace sym {

template <typename Scalar>
Values<Scalar>::Values() {}

template <typename Scalar>
Values<Scalar>::Values(std::initializer_list<Values<Scalar>> others) {
for (const auto& other : others) {
Expand Down
2 changes: 1 addition & 1 deletion symforce/opt/values.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class Values {
/**
* Default construct as empty.
*/
Values();
Values() = default;

/**
* Construct from a list of other Values objects. The order of Keys are preserved by
Expand Down

0 comments on commit 3cc6061

Please sign in to comment.