Skip to content

Commit 7168049

Browse files
generatedunixname89002005287564meta-codesync[bot]
authored andcommitted
Fix CQS signal facebook-hte-ConstantArgumentPassByValue in fbcode/mapillary/opensfm
Differential Revision: D91019840 fbshipit-source-id: 17467a7ac65b31756f5e1b978e91f82c9fa71e06
1 parent 6ee7ea9 commit 7168049

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

opensfm/src/bundle/error/error_utils.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ void WorldToCameraCoordinatesRig(const T* scale, const T* const rig_instance,
8585
}
8686

8787
template <typename T>
88-
T DiffBetweenAngles(const T a, const T b) {
88+
T DiffBetweenAngles(const T& a, const T& b) {
8989
T d = a - b;
9090
if (d > T(M_PI)) {
9191
return d - T(2 * M_PI);

opensfm/src/map/rig.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class RigInstance {
4141
map::RigInstanceId id;
4242

4343
RigInstance() = default;
44-
explicit RigInstance(const RigInstanceId instance_id) : id(instance_id) {}
44+
explicit RigInstance(const RigInstanceId& instance_id) : id(instance_id) {}
4545

4646
// Getters
4747
const std::unordered_map<map::ShotId, map::Shot*>& GetShots() const {

0 commit comments

Comments
 (0)