ClangTidy fixes #2

Change-Id: Ib3baa62248342276d63b900b45561323fd81402d
This commit is contained in:
Sameer Agarwal
2024-07-21 20:31:32 -07:00
parent 0ca2db57c7
commit 3c4f012606
21 changed files with 47 additions and 34 deletions
+3 -6
View File
@@ -32,9 +32,8 @@
// the generated bundle adjustment test binaries. The reason to split the
// bundle tests into separate binaries is so the tests can get parallelized.
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <memory>
#include <string>
#include "absl/log/log.h"
@@ -44,7 +43,6 @@
#include "ceres/problem.h"
#include "ceres/rotation.h"
#include "ceres/solver.h"
#include "ceres/stringprintf.h"
#include "ceres/test_util.h"
#include "ceres/types.h"
@@ -60,7 +58,7 @@ const bool kUserOrdering = false;
// problem is hard coded in the constructor.
class BundleAdjustmentProblem {
public:
BundleAdjustmentProblem(const std::string input_file) {
explicit BundleAdjustmentProblem(const std::string input_file) {
ReadData(input_file);
BuildProblem();
}
@@ -93,7 +91,7 @@ class BundleAdjustmentProblem {
const Solver::Options& options() const { return options_; }
// clang-format on
static double kResidualTolerance;
static constexpr double kResidualTolerance = 1e-4;
private:
void ReadData(const std::string& filename) {
@@ -242,7 +240,6 @@ class BundleAdjustmentProblem {
double* parameters_;
};
double BundleAdjustmentProblem::kResidualTolerance = 1e-4;
using BundleAdjustmentTest = SystemTest<BundleAdjustmentProblem>;
} // namespace internal