Skip to content

Commit

Permalink
fix: Tidy up the ctor and dtor
Browse files Browse the repository at this point in the history
  • Loading branch information
mrousavy committed Sep 23, 2024
1 parent 3a71496 commit 2b88306
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ using namespace margelo::nitro;
NativeNitroModules::NativeNitroModules(std::shared_ptr<CallInvoker> jsInvoker)
: TurboModule(kModuleName, jsInvoker), _callInvoker(jsInvoker) {}

NativeNitroModules::~NativeNitroModules() {}

jsi::Value NativeNitroModules::get(jsi::Runtime& runtime, const jsi::PropNameID& propName) {
std::string name = propName.utf8(runtime);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ using namespace facebook;
// The base C++-based TurboModule. This is the entry point where all nitro modules get initialized.
class NativeNitroModules : public TurboModule {
public:
NativeNitroModules(std::shared_ptr<CallInvoker> jsInvoker);
~NativeNitroModules();
explicit NativeNitroModules(std::shared_ptr<CallInvoker> jsInvoker);

public:
jsi::Value get(jsi::Runtime& runtime, const jsi::PropNameID& propName) override;
Expand Down

0 comments on commit 2b88306

Please sign in to comment.