Skip to content

Commit 11b94d0

Browse files
authored
Merge pull request #3213 from ivikhrev/callback-fix
Change callback arg to match callback signature
2 parents df1817a + de1da2a commit 11b94d0

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

demos/security_barrier_camera_demo/cpp/main.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,7 @@ void DetectionsProcessor::process() {
496496
ov::InferRequest& attributesRequest,
497497
cv::Rect rect,
498498
Context& context) {
499-
attributesRequest.set_callback([](const std::exception_ptr& e) {}); // destroy the stored bind object
499+
attributesRequest.set_callback([](std::exception_ptr) {}); // destroy the stored bind object
500500

501501
const std::pair<std::string, std::string>& attributes =
502502
context.detectionsProcessorsContext.vehicleAttributesClassifier.getResults(attributesRequest);
@@ -535,7 +535,7 @@ void DetectionsProcessor::process() {
535535
ov::InferRequest& lprRequest,
536536
cv::Rect rect,
537537
Context& context) {
538-
lprRequest.set_callback([](const std::exception_ptr& e) {}); // destroy the stored bind object
538+
lprRequest.set_callback([](std::exception_ptr) {}); // destroy the stored bind object
539539

540540
std::string result = context.detectionsProcessorsContext.lpr.getResults(lprRequest);
541541

@@ -593,7 +593,7 @@ void InferTask::process() {
593593
[](VideoFrame::Ptr sharedVideoFrame,
594594
ov::InferRequest& inferRequest,
595595
Context& context) {
596-
inferRequest.set_callback([](const std::exception_ptr& e) {}); // destroy the stored bind object
596+
inferRequest.set_callback([](std::exception_ptr) {}); // destroy the stored bind object
597597
tryPush(context.detectionsProcessorsContext.detectionsProcessorsWorker,
598598
std::make_shared<DetectionsProcessor>(sharedVideoFrame, &inferRequest));
599599
}, sharedVideoFrame,

demos/social_distance_demo/cpp/main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,7 @@ void DetectionsProcessor::process() {
511511
reidRequest.set_callback(
512512
std::bind([](std::shared_ptr<ClassifiersAggregator> classifiersAggregator,
513513
ov::InferRequest& reidRequest, cv::Rect rect, Context& context) {
514-
reidRequest.set_callback([](const std::exception_ptr& e) {}); // destroy the stored bind object
514+
reidRequest.set_callback([](std::exception_ptr) {}); // destroy the stored bind object
515515
std::vector<float> result = context.detectionsProcessorsContext.reid.getResults(reidRequest);
516516

517517
classifiersAggregator->push(cv::Rect(rect));
@@ -568,7 +568,7 @@ void InferTask::process() {
568568
[](VideoFrame::Ptr sharedVideoFrame,
569569
ov::InferRequest& inferRequest,
570570
Context& context) {
571-
inferRequest.set_callback([](const std::exception_ptr& e) {}); // destroy the stored bind object
571+
inferRequest.set_callback([](std::exception_ptr) {}); // destroy the stored bind object
572572
tryPush(context.detectionsProcessorsContext.reidTasksWorker,
573573
std::make_shared<DetectionsProcessor>(sharedVideoFrame, &inferRequest));
574574
}, sharedVideoFrame,

0 commit comments

Comments
 (0)