Fix some warnings

This commit is contained in:
2016-08-11 20:21:46 +01:00
parent e4cc023055
commit ec19b784b3
5 changed files with 6 additions and 21 deletions

View File

@ -504,13 +504,6 @@ Local<Object> V8Instance::wrap_role(DiscordObjects::Role *role) {
}
void V8Instance::js_get_role(Local<Name> property, const PropertyCallbackInfo<Value> &info) {
void *self_v = info.Data().As<External>()->Value();
if (!self_v) {
Logger::write("[v8] [js_get_role] Class pointer empty", Logger::LogLevel::Warning);
return;
}
V8Instance *self = static_cast<V8Instance *>(self_v);
void *role_v = info.Holder()->GetInternalField(0).As<External>()->Value();
if (!role_v) {
Logger::write("[v8] [js_get_role] Role pointer empty", Logger::LogLevel::Warning);