Skip to content

Commit

Permalink
noexcept
Browse files Browse the repository at this point in the history
  • Loading branch information
romainthomas committed May 7, 2024
1 parent 807b257 commit b014790
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
4 changes: 2 additions & 2 deletions include/LIEF/PE/Import.hpp
Expand Up @@ -53,8 +53,8 @@ class LIEF_API Import : public Object {
~Import() override;

Import(const Import& other);
Import(Import&& other);
Import& operator=(Import&& other);
Import(Import&& other) noexcept;
Import& operator=(Import&& other) noexcept;
Import& operator=(const Import& other);

//! The index of the first forwarder reference
Expand Down
6 changes: 2 additions & 4 deletions src/PE/Import.cpp
Expand Up @@ -29,8 +29,8 @@ namespace PE {

Import::~Import() = default;

Import::Import(Import&& other) = default;
Import& Import::operator=(Import&& other) = default;
Import::Import(Import&& other) noexcept = default;
Import& Import::operator=(Import&& other) noexcept = default;
Import::Import() = default;
Import::Import(const Import& other) = default;
Import& Import::operator=(const Import& other) = default;
Expand All @@ -43,12 +43,10 @@ Import::Import(const details::pe_import& import) :
import_address_table_RVA_(import.ImportAddressTableRVA)
{}


Import::Import(std::string name) :
name_{std::move(name)}
{}


const ImportEntry* Import::get_entry(const std::string& name) const {
const auto it_entry = std::find_if(std::begin(entries_), std::end(entries_),
[&name] (const ImportEntry& entry) {
Expand Down

0 comments on commit b014790

Please sign in to comment.