-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
clang-tidy: fix missing special member func #173
base: master
Are you sure you want to change the base?
Changes from 3 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -83,6 +83,8 @@ class MATROSKA_DLL_API SimpleDataBuffer : public DataBuffer { | |
{} | ||
~SimpleDataBuffer() override = default; | ||
|
||
SimpleDataBuffer& operator=(const SimpleDataBuffer &) = delete; | ||
|
||
DataBuffer * Clone() override {return new SimpleDataBuffer(*this);} | ||
|
||
protected: | ||
|
@@ -179,10 +181,9 @@ DECLARE_MKX_MASTER(KaxBlockGroup) | |
|
||
class MATROSKA_DLL_API KaxInternalBlock : public libebml::EbmlBinary { | ||
public: | ||
KaxInternalBlock(const libebml::EbmlCallbacks & classInfo) | ||
:libebml::EbmlBinary(classInfo) | ||
{} | ||
using EbmlBinary::EbmlBinary; | ||
KaxInternalBlock(const KaxInternalBlock & ElementToClone); | ||
KaxInternalBlock& operator=(const KaxInternalBlock &) = delete; | ||
~KaxInternalBlock() override; | ||
bool SizeIsValid(std::uint64_t size) const override | ||
{ | ||
|
@@ -311,6 +312,9 @@ class MATROSKA_DLL_API KaxBlockBlob { | |
delete Block.group; | ||
} | ||
|
||
KaxBlockBlob(const KaxBlockBlob&) = delete; | ||
KaxBlockBlob& operator=(const KaxBlockBlob&) = delete; | ||
|
||
operator KaxBlockGroup &() const; | ||
operator KaxSimpleBlock &() const; | ||
operator KaxInternalBlock &() const; | ||
|
@@ -337,8 +341,6 @@ class MATROSKA_DLL_API KaxBlockBlob { | |
|
||
DECLARE_MKX_BINARY_CONS(KaxBlockVirtual) | ||
public: | ||
~KaxBlockVirtual() override; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This should make no difference doing that here or in the I don't understand the commit description. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. simpler to do it in the macro. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's not up to the macro to decide if the child class needs an overriden destructor or not. The macro is only to have a custom CONStructor. The form of the desctructor is up to each class. It is currently possible to factorize this. But since this will be part of the new API, if ever need to move the destructor out of the macro, we'll be screwed. Also this commit changes the desctructor and a copy constructor. They should be split. And I wonder why the copy contructor is not allowed. |
||
|
||
/*! | ||
\note override this function to generate the Data/Size on the fly, unlike the usual binary elements | ||
*/ | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this forbidden ? Should it be mixed with the previous commit ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the error is that the operator is missing. I deleted it only because it does not cause a compile error.