Skip to content

Commit

Permalink
fix: fix default destructor
Browse files Browse the repository at this point in the history
  • Loading branch information
OEOTYAN committed Jan 24, 2024
1 parent 503e735 commit a491566
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/Plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

namespace plugin {

Plugin::~Plugin() = default;

static std::unique_ptr<Plugin> plugin{};

Plugin& Plugin::getInstance() { return *plugin; }
Expand Down
4 changes: 2 additions & 2 deletions src/Plugin.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ class Plugin {
Plugin& operator=(Plugin&&) = delete;
Plugin& operator=(const Plugin&) = delete;

~Plugin() = default;
~Plugin(); // NOLINT(performance-trivially-destructible)

static Plugin& getInstance();

ll::plugin::NativePlugin& getSelf() const;
[[nodiscard]] ll::plugin::NativePlugin& getSelf() const;

/// @return True if the plugin is enabled successfully.
bool enable();
Expand Down

0 comments on commit a491566

Please sign in to comment.