Skip to content

Commit 55e44a8

Browse files
Merge pull request #1 from ConstantRobotics-Ltd/add-virtual-destructor
Add virtual destructor
2 parents 3252cb3 + ed67c9d commit 55e44a8

File tree

7 files changed

+23
-7
lines changed

7 files changed

+23
-7
lines changed
275 KB
Binary file not shown.

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
# **ObjectDetector interface C++ library**
66

7-
**v1.5.1**
7+
**v1.6.1**
88

99

1010

@@ -64,6 +64,7 @@
6464
| 1.4.0 | 24.09.2023 | - Updated encode(...) and decode(...) methods of ObjectDetectorParams.<br />- Added decodeAndExecuteCommand(...) method.<br />- Added example of object detector implementation. |
6565
| 1.5.0 | 26.09.2023 | - Signature of getParams(...) method changed. |
6666
| 1.5.1 | 13.11.2023 | - Frame class updated. |
67+
| 1.6.1 | 14.12.2023 | - Virtual destructor added.<br />- Frame class updated. |
6768

6869

6970

@@ -109,6 +110,9 @@ class ObjectDetector
109110
{
110111
public:
111112

113+
/// Class destructor.
114+
virtual ~ObjectDetector();
115+
112116
/// Get string of current library version.
113117
static std::string getVersion();
114118

@@ -175,7 +179,7 @@ std::cout << "ObjectDetector class version: " << ObjectDetector::getVersion() <<
175179
Console output:
176180

177181
```bash
178-
ObjectDetector class version: 1.4.0
182+
ObjectDetector class version: 1.6.1
179183
```
180184

181185

src/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ cmake_minimum_required(VERSION 3.13)
66
## LIBRARY-PROJECT
77
## name and version
88
###############################################################################
9-
project(ObjectDetector VERSION 1.5.0 LANGUAGES CXX)
9+
project(ObjectDetector VERSION 1.6.1 LANGUAGES CXX)
1010

1111

1212

src/ObjectDetector.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,13 @@
33

44

55

6+
cr::detector::ObjectDetector::~ObjectDetector()
7+
{
8+
9+
}
10+
11+
12+
613
std::string cr::detector::ObjectDetector::getVersion()
714
{
815
return OBJECT_DETECTOR_VERSION;

src/ObjectDetector.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,11 @@ class ObjectDetector
291291
{
292292
public:
293293

294+
/**
295+
* @brief Class destructor.
296+
*/
297+
virtual ~ObjectDetector();
298+
294299
/**
295300
* @brief Get string of current library version.
296301
* @return String of current library version.

src/ObjectDetectorVersion.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#pragma once
22

33
#define OBJECT_DETECTOR_MAJOR_VERSION 1
4-
#define OBJECT_DETECTOR_MINOR_VERSION 5
5-
#define OBJECT_DETECTOR_PATCH_VERSION 0
4+
#define OBJECT_DETECTOR_MINOR_VERSION 6
5+
#define OBJECT_DETECTOR_PATCH_VERSION 1
66

7-
#define OBJECT_DETECTOR_VERSION "1.5.0"
7+
#define OBJECT_DETECTOR_VERSION "1.6.1"

0 commit comments

Comments
 (0)