Skip to content

Commit

Permalink
make shared_ptr a reference
Browse files Browse the repository at this point in the history
  • Loading branch information
varunagrawal committed Oct 26, 2024
1 parent 0271eb6 commit 92b3272
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gtsam/linear/PCGSolver.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ struct GTSAM_EXPORT PCGSolverParameters : public ConjugateGradientParameters {
PCGSolverParameters() {}

PCGSolverParameters(
const std::shared_ptr<PreconditionerParameters> preconditioner)
const std::shared_ptr<PreconditionerParameters> &preconditioner)
: preconditioner(preconditioner) {}

void print(std::ostream &os) const override;
Expand Down

0 comments on commit 92b3272

Please sign in to comment.