Skip to content

Commit 82e4ce0

Browse files
authored
Merge pull request #67 from TimPushkin/native-enhancements
Add missing const qualifiers
2 parents 09dc38b + f868ce2 commit 82e4ce0

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/src/main/cpp/include/detection_result.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ class DetectionResult : public internal::base_object<DetectionResult> {
4646
DetectionResult(std::vector<std::shared_ptr<StrippedKeypoint>> keypoints,
4747
std::vector<std::vector<uint8_t>> descriptors);
4848

49-
std::vector<std::shared_ptr<StrippedKeypoint>> getKeypoints();
49+
std::vector<std::shared_ptr<StrippedKeypoint>> getKeypoints() const;
5050

51-
std::vector<std::vector<uint8_t>> getDescriptors();
51+
std::vector<std::vector<uint8_t>> getDescriptors() const;
5252

5353
private:
5454
std::vector<std::shared_ptr<StrippedKeypoint>> keypoints_;

lib/src/main/cpp/src/detection_result.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ DetectionResult::DetectionResult(std::vector<std::shared_ptr<StrippedKeypoint>>
66
std::vector<std::vector<uint8_t>> descriptors)
77
: keypoints_(std::move(keypoints)), descriptors_(std::move(descriptors)) {}
88

9-
std::vector<std::shared_ptr<StrippedKeypoint>> DetectionResult::getKeypoints() {
9+
std::vector<std::shared_ptr<StrippedKeypoint>> DetectionResult::getKeypoints() const {
1010
return keypoints_;
1111
}
1212

13-
std::vector<std::vector<uint8_t>> DetectionResult::getDescriptors() {
13+
std::vector<std::vector<uint8_t>> DetectionResult::getDescriptors() const {
1414
return descriptors_;
1515
}
1616

0 commit comments

Comments
 (0)