Skip to content

Commit 885358a

Browse files
committed
fixing comments
1 parent 6855968 commit 885358a

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

demos/common/cpp/monitors/src/presenter.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ std::set<MonitorType> strKeysToMonitorSet(const std::string& keys) {
2323
return enabledMonitors;
2424
}
2525
for (unsigned char key: keys) {
26+
if (key == "h") {
27+
throw std::runtime_error("Unacceptable combination of monitor types-can't show and hide info at the same time");
28+
}
2629
auto iter = keyToMonitorType.find(std::toupper(key));
2730
if (keyToMonitorType.end() == iter) {
2831
throw std::runtime_error("Unknown monitor type");

demos/interactive_face_detection_demo/cpp/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,13 +116,13 @@ void parse(int argc, char *argv[]) {
116116
"\n\t\tP, p, 0, spacebar - Pause"
117117
"\n\t\tC - average CPU load, D - load distribution over cores, M - memory usage, H - hide\n";
118118
showAvailableDevices();
119-
std::cout << ov::get_openvino_version() << std::endl;
120119
exit(0);
121120
} if (FLAGS_i.empty()) {
122121
throw std::invalid_argument{"-i <INPUT> can't be empty"};
123122
} if (FLAGS_m.empty()) {
124123
throw std::invalid_argument{"-m <MODEL FILE> can't be empty"};
125124
}
125+
std::cout << ov::get_openvino_version() << std::endl;
126126
}
127127
} // namespace
128128

0 commit comments

Comments
 (0)