Skip to content

Commit

Permalink
Fixed CPP lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
kraenhansen committed Jun 8, 2022
1 parent edb5565 commit b68bf3d
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 16 deletions.
6 changes: 2 additions & 4 deletions src/common/object/strategies.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,8 @@ struct NoBuilder {
: context{_context} {};
};

class NoData {
};
class EmptyGetterSetters {
};
class NoData {};
class EmptyGetterSetters {};

struct NoNotificationsStrategy {
int empty{0};
Expand Down
3 changes: 1 addition & 2 deletions src/common/type_deduction.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,7 @@ class GenericTypeDeductionImpl {
* Here we encapsulate some type deduction capabilities for all supported
* Javascript environments.
*/
struct TypeDeduction : GenericTypeDeductionImpl {
};
struct TypeDeduction : GenericTypeDeductionImpl {};

} // namespace js
} // namespace realm
3 changes: 1 addition & 2 deletions src/js_auth.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ namespace js {
// JavaScript used by the auth providers EmailPassword, APIKeys, etc. No objects
// will ever be created of the type.

class Auth {
};
class Auth {};

template <typename T>
class AuthClass : public ClassDefinition<T, Auth> {
Expand Down
3 changes: 1 addition & 2 deletions src/js_collection.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@ template <typename T>
struct RealmObjectClass;

// Empty class that merely serves as useful type for now.
class Collection {
};
class Collection {};

template <typename T>
struct CollectionClass : ClassDefinition<T, Collection, ObservableClass<T>> {
Expand Down
3 changes: 1 addition & 2 deletions src/js_observable.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ namespace realm {
namespace js {

// Empty class that merely serves as useful type for now.
class Observable {
};
class Observable {};

template <typename T>
struct ObservableClass : ClassDefinition<T, Observable> {
Expand Down
3 changes: 1 addition & 2 deletions src/jsi/jsi_class.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -663,8 +663,7 @@ class ObjectWrap {
} // namespace realmjsi

template <typename ClassType>
class ObjectWrap<realmjsi::Types, ClassType> : public realm::js::realmjsi::ObjectWrap<ClassType> {
};
class ObjectWrap<realmjsi::Types, ClassType> : public realm::js::realmjsi::ObjectWrap<ClassType> {};

template <realmjsi::ArgumentsMethodType F>
fbjsi::Value wrap(fbjsi::Runtime& rt, const fbjsi::Value& thisVal, const fbjsi::Value* args, size_t count)
Expand Down
3 changes: 1 addition & 2 deletions src/node/node_class.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1490,8 +1490,7 @@ ObjectWrap<ClassType>::setup_static_property(Napi::Env env, const std::string& n
namespace js {

template <typename ClassType>
class ObjectWrap<node::Types, ClassType> : public node::ObjectWrap<ClassType> {
};
class ObjectWrap<node::Types, ClassType> : public node::ObjectWrap<ClassType> {};


#define HANDLE_WRAP_EXCEPTION \
Expand Down

0 comments on commit b68bf3d

Please sign in to comment.