mirror of
https://github.com/ceres-solver/ceres-solver.git
synced 2026-08-29 08:34:37 +08:00
ClangTidy cleanups
1. NULL -> nullptr 2. foo.reset(new Bar) -> = foo = std::make_unique<Bar>() 3. Missing std library includes & prefixes Change-Id: I260b261b484554be681ee5a7398126fdb3b3a789
This commit is contained in:
@@ -74,7 +74,7 @@ class CERES_EXPORT_INTERNAL InnerProductComputer {
|
||||
//
|
||||
// The user must ensure that the matrix m is valid for the life time
|
||||
// of this object.
|
||||
static InnerProductComputer* Create(
|
||||
static std::unique_ptr<InnerProductComputer> Create(
|
||||
const BlockSparseMatrix& m,
|
||||
CompressedRowSparseMatrix::StorageType storage_type);
|
||||
|
||||
@@ -83,7 +83,7 @@ class CERES_EXPORT_INTERNAL InnerProductComputer {
|
||||
//
|
||||
// a = m(start_row_block : end_row_block, :);
|
||||
// result = a' * a;
|
||||
static InnerProductComputer* Create(
|
||||
static std::unique_ptr<InnerProductComputer> Create(
|
||||
const BlockSparseMatrix& m,
|
||||
int start_row_block,
|
||||
int end_row_block,
|
||||
@@ -127,7 +127,7 @@ class CERES_EXPORT_INTERNAL InnerProductComputer {
|
||||
|
||||
void Init(CompressedRowSparseMatrix::StorageType storage_type);
|
||||
|
||||
CompressedRowSparseMatrix* CreateResultMatrix(
|
||||
std::unique_ptr<CompressedRowSparseMatrix> CreateResultMatrix(
|
||||
const CompressedRowSparseMatrix::StorageType storage_type,
|
||||
int num_nonzeros);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user