From d65afaac6d5be661429bea1a8d9e13898e16501b Mon Sep 17 00:00:00 2001 From: Rainer Kuemmerle Date: Sat, 20 Jul 2024 16:27:17 +0200 Subject: [PATCH] Fix minor clang-tidy recommendations --- g2o/solvers/cholmod/cholmod_wrapper.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/g2o/solvers/cholmod/cholmod_wrapper.h b/g2o/solvers/cholmod/cholmod_wrapper.h index 990dbeb93..2fd3ec519 100644 --- a/g2o/solvers/cholmod/cholmod_wrapper.h +++ b/g2o/solvers/cholmod/cholmod_wrapper.h @@ -69,14 +69,14 @@ class Cholmod { }; bool factorize(); - bool hasFactor() const; + [[nodiscard]] bool hasFactor() const; void freeFactor(); bool simplifyFactor(); //! compute AMD ordering on the given SparseView, store into result bool amd(SparseView& sparseView, int* result); - int choleskyNz() const; + [[nodiscard]] int choleskyNz() const; void solve(double* x, double* b) const;