explicitly define destructor to avoid destructing with forward declaration

This commit is contained in:
Konstantin Käfer
2014-08-12 13:35:04 +02:00
parent 52939ce2fa
commit df47a7be90
2 changed files with 6 additions and 0 deletions

View File

@@ -28,6 +28,7 @@ public:
public:
Style();
~Style();
void loadJSON(const uint8_t *const data);

View File

@@ -19,6 +19,11 @@ Style::Style()
: mtx(std::make_unique<uv::rwlock>()) {
}
// Note: This constructor is seemingly empty, but we need to declare it anyway
// because this file includes uv_detail.hpp, which has the declarations necessary
// for deleting the std::unique_ptr<uv::rwlock>.
Style::~Style() {}
void Style::updateProperties(float z, timestamp now) {
uv::writelock lock(mtx);