Permalink
Browse files
librecad* : fix default destructor
the default destructor is not automatically created in all cases also allow built on darwin10 now that qt5 is available there
- Loading branch information
Showing
with
60 additions
and 1 deletion.
| @@ -0,0 +1,25 @@ | ||
| diff --git librecad/src/lib/engine/rs_image.cpp librecad/src/lib/engine/rs_image.cpp | ||
| index 1b39cbd..3f4ea16 100644 | ||
| --- librecad/src/lib/engine/rs_image.cpp | ||
| +++ librecad/src/lib/engine/rs_image.cpp | ||
| @@ -35,6 +35,8 @@ | ||
| #include "rs_painterqt.h" | ||
| #include "rs_math.h" | ||
|
|
||
| +RS_ImageData::~RS_ImageData() = default; | ||
| + | ||
| RS_ImageData::RS_ImageData(int _handle, | ||
| const RS_Vector& _insertionPoint, | ||
| const RS_Vector& _uVector, | ||
| diff --git librecad/src/lib/engine/rs_image.h librecad/src/lib/engine/rs_image.h | ||
| index 12d7802..fa0f6f3 100644 | ||
| --- librecad/src/lib/engine/rs_image.h | ||
| +++ librecad/src/lib/engine/rs_image.h | ||
| @@ -39,6 +39,7 @@ struct RS_ImageData { | ||
| * Default constructor. Leaves the data object uninitialized. | ||
| */ | ||
| RS_ImageData() = default; | ||
| + ~RS_ImageData(); | ||
|
|
||
| RS_ImageData(int handle, | ||
| const RS_Vector& insertionPoint, |
| @@ -0,0 +1,25 @@ | ||
| diff --git a/librecad/src/lib/engine/rs_image.cpp b/librecad/src/lib/engine/rs_image.cpp | ||
| index 1b39cbd..3f4ea16 100644 | ||
| --- a/librecad/src/lib/engine/rs_image.cpp | ||
| +++ b/librecad/src/lib/engine/rs_image.cpp | ||
| @@ -35,6 +35,8 @@ | ||
| #include "rs_painterqt.h" | ||
| #include "rs_math.h" | ||
|
|
||
| +RS_ImageData::~RS_ImageData() = default; | ||
| + | ||
| RS_ImageData::RS_ImageData(int _handle, | ||
| const RS_Vector& _insertionPoint, | ||
| const RS_Vector& _uVector, | ||
| diff --git a/librecad/src/lib/engine/rs_image.h b/librecad/src/lib/engine/rs_image.h | ||
| index 12d7802..fa0f6f3 100644 | ||
| --- a/librecad/src/lib/engine/rs_image.h | ||
| +++ b/librecad/src/lib/engine/rs_image.h | ||
| @@ -39,6 +39,7 @@ struct RS_ImageData { | ||
| * Default constructor. Leaves the data object uninitialized. | ||
| */ | ||
| RS_ImageData() = default; | ||
| + ~RS_ImageData(); | ||
|
|
||
| RS_ImageData(int handle, | ||
| const RS_Vector& insertionPoint, |