clang-format atom files
This commit is contained in:
parent
717f55b012
commit
53bdf22c85
128 changed files with 771 additions and 753 deletions
|
@ -14,7 +14,7 @@ namespace atom {
|
|||
|
||||
namespace api {
|
||||
|
||||
template<typename K>
|
||||
template <typename K>
|
||||
class KeyWeakMap : public mate::Wrappable<KeyWeakMap<K>> {
|
||||
public:
|
||||
static mate::Handle<KeyWeakMap<K>> Create(v8::Isolate* isolate) {
|
||||
|
@ -47,13 +47,9 @@ class KeyWeakMap : public mate::Wrappable<KeyWeakMap<K>> {
|
|||
return key_weak_map_.Get(isolate, key).ToLocalChecked();
|
||||
}
|
||||
|
||||
bool Has(const K& key) {
|
||||
return key_weak_map_.Has(key);
|
||||
}
|
||||
bool Has(const K& key) { return key_weak_map_.Has(key); }
|
||||
|
||||
void Remove(const K& key) {
|
||||
key_weak_map_.Remove(key);
|
||||
}
|
||||
void Remove(const K& key) { key_weak_map_.Remove(key); }
|
||||
|
||||
atom::KeyWeakMap<K> key_weak_map_;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue