Skip to content

Commit eda6b12

Browse files
Devmate Botfacebook-github-bot
authored andcommitted
{Build} ModernizeAvoidCArrays -- use stringviews (#279)
Summary: Pull Request resolved: #279 Differential Revision: D84132046
1 parent 3c90acf commit eda6b12

File tree

1 file changed

+3
-2
lines changed
  • core/calibration/camera_projections

1 file changed

+3
-2
lines changed

core/calibration/camera_projections/Linear.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
#pragma once
1818

1919
#include <cmath>
20+
#include <string_view>
2021

2122
#include <calibration/camera_projections/Common.h>
2223

@@ -32,8 +33,8 @@ class LinearProjection {
3233
EIGEN_MAKE_ALIGNED_OPERATOR_NEW
3334

3435
static constexpr int kNumParams = 4;
35-
static constexpr char kName[] = "Linear";
36-
static constexpr char kDescription[] = "fx, fy, cx, cy";
36+
static constexpr std::string_view kName = "Linear";
37+
static constexpr std::string_view kDescription = "fx, fy, cx, cy";
3738
static constexpr int kNumDistortionParams = 0;
3839
static constexpr int kFocalXIdx = 0;
3940
static constexpr int kFocalYIdx = 1;

0 commit comments

Comments
 (0)