Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
romainthomas committed Apr 28, 2024
1 parent 96240ed commit f769882
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
8 changes: 4 additions & 4 deletions include/LIEF/PE/signature/ContentInfo.hpp
Expand Up @@ -99,16 +99,16 @@ class LIEF_API ContentInfo : public Object {
return os;
}

~Content() override;
~Content() override = default;
private:
oid_t type_;
};
ContentInfo();
ContentInfo(const ContentInfo& other);
ContentInfo(ContentInfo&& other);
ContentInfo(ContentInfo&& other) noexcept = default;
ContentInfo& operator=(ContentInfo other);

void swap(ContentInfo& other);
void swap(ContentInfo& other) noexcept;

//! Return the OID that describes the content wrapped by this object.
//! It should match SPC_INDIRECT_DATA_OBJID (1.3.6.1.4.1.311.2.1.4)
Expand All @@ -134,7 +134,7 @@ class LIEF_API ContentInfo : public Object {

void accept(Visitor& visitor) const override;

~ContentInfo() override;
~ContentInfo() override = default;

LIEF_API friend std::ostream& operator<<(std::ostream& os, const ContentInfo& content_info);

Expand Down
8 changes: 1 addition & 7 deletions src/PE/signature/ContentInfo.cpp
Expand Up @@ -28,12 +28,6 @@ namespace LIEF {
namespace PE {


ContentInfo::~ContentInfo() = default;

ContentInfo::Content::~Content() = default;

ContentInfo::ContentInfo(ContentInfo&& other) = default;

ContentInfo::ContentInfo() :
value_(std::make_unique<GenericContent>())
{}
Expand All @@ -48,7 +42,7 @@ ContentInfo& ContentInfo::operator=(ContentInfo other) {
return *this;
}

void ContentInfo::swap(ContentInfo& other) {
void ContentInfo::swap(ContentInfo& other) noexcept {
std::swap(value_, other.value_);
}

Expand Down

0 comments on commit f769882

Please sign in to comment.