Skip to content

Commit

Permalink
src: fix odd linting issue
Browse files Browse the repository at this point in the history
The prior commit causes a linting issue here.
Fix by changing from a struct to a class.

PR-URL: #20789
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Daniel Bevenius <[email protected]>
Reviewed-By: Gus Caplan <[email protected]>
Reviewed-By: Tiancheng "Timothy" Gu <[email protected]>
  • Loading branch information
jasnell authored and MylesBorins committed May 22, 2018
1 parent 36d4a42 commit 08b98d1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/node.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2077,7 +2077,8 @@ node_module* get_linked_module(const char* name) {
return FindModule(modlist_linked, name, NM_F_LINKED);
}

struct DLib {
class DLib {
public:
#ifdef __POSIX__
static const int kDefaultFlags = RTLD_LAZY;
#else
Expand All @@ -2098,7 +2099,7 @@ struct DLib {
#ifndef __POSIX__
uv_lib_t lib_;
#endif

private:
DISALLOW_COPY_AND_ASSIGN(DLib);
};

Expand Down

0 comments on commit 08b98d1

Please sign in to comment.