Make the Linter happy.
This commit is contained in:
parent
3a9a1d35d7
commit
88805ec7e2
7 changed files with 27 additions and 19 deletions
|
@ -6,10 +6,9 @@
|
|||
|
||||
namespace mate {
|
||||
|
||||
bool Converter<std::map<std::string, std::string>>::FromV8(v8::Isolate* isolate,
|
||||
bool Converter<std::map<std::string, std::string>>::FromV8(v8::Isolate* isolate,
|
||||
v8::Local<v8::Value> val,
|
||||
std::map<std::string, std::string>* out) {
|
||||
|
||||
if (!val->IsObject())
|
||||
return false;
|
||||
|
||||
|
@ -22,9 +21,9 @@ bool Converter<std::map<std::string, std::string>>::FromV8(v8::Isolate* isolate,
|
|||
return true;
|
||||
}
|
||||
|
||||
v8::Local<v8::Value> Converter<std::map<std::string, std::string>>::ToV8(v8::Isolate* isolate,
|
||||
v8::Local<v8::Value> Converter<std::map<std::string, std::string>>::ToV8(
|
||||
v8::Isolate* isolate,
|
||||
const std::map<std::string, std::string>& in) {
|
||||
|
||||
mate::Dictionary dict(isolate, v8::Object::New(isolate));
|
||||
|
||||
for (auto const &pair : in) {
|
||||
|
@ -34,4 +33,4 @@ v8::Local<v8::Value> Converter<std::map<std::string, std::string>>::ToV8(v8::Iso
|
|||
return dict.GetHandle();
|
||||
}
|
||||
|
||||
} // namespace mate
|
||||
} // namespace mate
|
||||
|
|
|
@ -20,9 +20,9 @@ struct Converter<std::map<std::string, std::string>> {
|
|||
std::map<std::string, std::string>* out);
|
||||
|
||||
static v8::Local<v8::Value> ToV8(v8::Isolate* isolate,
|
||||
const std::map<std::string, std::string>& in);
|
||||
const std::map<std::string, std::string>& in);
|
||||
};
|
||||
|
||||
} // namespace mate
|
||||
|
||||
#endif // ATOM_COMMON_NATIVE_MATE_CONVERTERS_STRING_MAP_CONVERTER_H_
|
||||
#endif // ATOM_COMMON_NATIVE_MATE_CONVERTERS_STRING_MAP_CONVERTER_H_
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue