Skip to content

Commit

Permalink
Add typing for newer node v8 versions where setAccessor have been rep…
Browse files Browse the repository at this point in the history
…laced with setNativeProperty
  • Loading branch information
julianhille committed Sep 7, 2024
1 parent 072f4d6 commit 6a6e72f
Show file tree
Hide file tree
Showing 25 changed files with 77 additions and 75 deletions.
2 changes: 1 addition & 1 deletion src/FormXObjectDriver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ METHOD_RETURN_TYPE FormXObjectDriver::New(const ARGS_TYPE& args)
SET_FUNCTION_RETURN_VALUE(args.This())
}

METHOD_RETURN_TYPE FormXObjectDriver::GetID(Local<String> property, const PROPERTY_TYPE &info)
METHOD_RETURN_TYPE FormXObjectDriver::GetID(SET_ACCESSOR_METHOD_NAME_TYPE property, const PROPERTY_TYPE &info)
{
CREATE_ISOLATE_CONTEXT;
CREATE_ESCAPABLE_SCOPE;
Expand Down
2 changes: 1 addition & 1 deletion src/FormXObjectDriver.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class FormXObjectDriver : public node::ObjectWrap
PDFWriterDriver* mPDFWriterDriver;

static METHOD_RETURN_TYPE New(const ARGS_TYPE& args);
static METHOD_RETURN_TYPE GetID(v8::Local<v8::String> property, const PROPERTY_TYPE& info);
static METHOD_RETURN_TYPE GetID(SET_ACCESSOR_METHOD_NAME_TYPE property, const PROPERTY_TYPE& info);
static METHOD_RETURN_TYPE GetContentContext(const ARGS_TYPE& args);
static METHOD_RETURN_TYPE GetResourcesDictionary(const ARGS_TYPE& args);
static METHOD_RETURN_TYPE GetContentStream(const ARGS_TYPE& args);
Expand Down
2 changes: 1 addition & 1 deletion src/ImageXObjectDriver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ METHOD_RETURN_TYPE ImageXObjectDriver::New(const ARGS_TYPE& args)
SET_FUNCTION_RETURN_VALUE(args.This())
}

METHOD_RETURN_TYPE ImageXObjectDriver::GetID(Local<String> property, const PROPERTY_TYPE &info)
METHOD_RETURN_TYPE ImageXObjectDriver::GetID(SET_ACCESSOR_METHOD_NAME_TYPE property, const PROPERTY_TYPE &info)
{
CREATE_ISOLATE_CONTEXT;
CREATE_ESCAPABLE_SCOPE;
Expand Down
2 changes: 1 addition & 1 deletion src/ImageXObjectDriver.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,5 @@ class ImageXObjectDriver : public node::ObjectWrap
ImageXObjectDriver();

static METHOD_RETURN_TYPE New(const ARGS_TYPE& args);
static METHOD_RETURN_TYPE GetID(v8::Local<v8::String> property, const PROPERTY_TYPE& info);
static METHOD_RETURN_TYPE GetID(SET_ACCESSOR_METHOD_NAME_TYPE property, const PROPERTY_TYPE& info);
};
28 changes: 14 additions & 14 deletions src/InfoDictionaryDriver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ METHOD_RETURN_TYPE InfoDictionaryDriver::New(const ARGS_TYPE& args)
SET_FUNCTION_RETURN_VALUE(args.This())
}

METHOD_RETURN_TYPE InfoDictionaryDriver::GetTitle(Local<String> property, const PROPERTY_TYPE &info)
METHOD_RETURN_TYPE InfoDictionaryDriver::GetTitle(SET_ACCESSOR_METHOD_NAME_TYPE property, const PROPERTY_TYPE &info)
{
CREATE_ISOLATE_CONTEXT;
CREATE_ESCAPABLE_SCOPE;
Expand All @@ -88,7 +88,7 @@ METHOD_RETURN_TYPE InfoDictionaryDriver::GetTitle(Local<String> property, const
SET_ACCESSOR_RETURN_VALUE(NEW_STRING(infoDictionaryDriver->InfoDictionaryInstance->Title.ToUTF8String().c_str()))
}

void InfoDictionaryDriver::SetTitle(Local<String> property, Local<Value> value, const PROPERTY_SETTER_TYPE &info)
void InfoDictionaryDriver::SetTitle(SET_ACCESSOR_METHOD_NAME_TYPE property, Local<Value> value, const PROPERTY_SETTER_TYPE &info)
{
CREATE_ISOLATE_CONTEXT;

Expand All @@ -100,7 +100,7 @@ void InfoDictionaryDriver::SetTitle(Local<String> property, Local<Value> value,
infoDictionaryDriver->InfoDictionaryInstance->Title.FromUTF8(*UTF_8_VALUE(value->TO_STRING()));
}

METHOD_RETURN_TYPE InfoDictionaryDriver::GetAuthor(Local<String> property, const PROPERTY_TYPE &info)
METHOD_RETURN_TYPE InfoDictionaryDriver::GetAuthor(SET_ACCESSOR_METHOD_NAME_TYPE property, const PROPERTY_TYPE &info)
{
CREATE_ISOLATE_CONTEXT;
CREATE_ESCAPABLE_SCOPE;
Expand All @@ -116,7 +116,7 @@ METHOD_RETURN_TYPE InfoDictionaryDriver::GetAuthor(Local<String> property, const
SET_ACCESSOR_RETURN_VALUE(NEW_STRING(infoDictionaryDriver->InfoDictionaryInstance->Author.ToUTF8String().c_str()))
}

void InfoDictionaryDriver::SetAuthor(Local<String> property, Local<Value> value, const PROPERTY_SETTER_TYPE &info)
void InfoDictionaryDriver::SetAuthor(SET_ACCESSOR_METHOD_NAME_TYPE property, Local<Value> value, const PROPERTY_SETTER_TYPE &info)
{
CREATE_ISOLATE_CONTEXT;

Expand All @@ -128,7 +128,7 @@ void InfoDictionaryDriver::SetAuthor(Local<String> property, Local<Value> value,
infoDictionaryDriver->InfoDictionaryInstance->Author.FromUTF8(*UTF_8_VALUE(value->TO_STRING()));
}

METHOD_RETURN_TYPE InfoDictionaryDriver::GetSubject(Local<String> property, const PROPERTY_TYPE &info)
METHOD_RETURN_TYPE InfoDictionaryDriver::GetSubject(SET_ACCESSOR_METHOD_NAME_TYPE property, const PROPERTY_TYPE &info)
{
CREATE_ISOLATE_CONTEXT;
CREATE_ESCAPABLE_SCOPE;
Expand All @@ -144,7 +144,7 @@ METHOD_RETURN_TYPE InfoDictionaryDriver::GetSubject(Local<String> property, cons
SET_ACCESSOR_RETURN_VALUE(NEW_STRING(infoDictionaryDriver->InfoDictionaryInstance->Subject.ToUTF8String().c_str()))
}

void InfoDictionaryDriver::SetSubject(Local<String> property, Local<Value> value, const PROPERTY_SETTER_TYPE &info)
void InfoDictionaryDriver::SetSubject(SET_ACCESSOR_METHOD_NAME_TYPE property, Local<Value> value, const PROPERTY_SETTER_TYPE &info)
{
CREATE_ISOLATE_CONTEXT;
InfoDictionaryDriver* infoDictionaryDriver = ObjectWrap::Unwrap<InfoDictionaryDriver>(info.Holder());
Expand All @@ -155,7 +155,7 @@ void InfoDictionaryDriver::SetSubject(Local<String> property, Local<Value> value
infoDictionaryDriver->InfoDictionaryInstance->Subject.FromUTF8(*UTF_8_VALUE(value->TO_STRING()));
}

METHOD_RETURN_TYPE InfoDictionaryDriver::GetKeywords(Local<String> property, const PROPERTY_TYPE &info)
METHOD_RETURN_TYPE InfoDictionaryDriver::GetKeywords(SET_ACCESSOR_METHOD_NAME_TYPE property, const PROPERTY_TYPE &info)
{
CREATE_ISOLATE_CONTEXT;
CREATE_ESCAPABLE_SCOPE;
Expand All @@ -171,7 +171,7 @@ METHOD_RETURN_TYPE InfoDictionaryDriver::GetKeywords(Local<String> property, con
SET_ACCESSOR_RETURN_VALUE(NEW_STRING(infoDictionaryDriver->InfoDictionaryInstance->Keywords.ToUTF8String().c_str()))
}

void InfoDictionaryDriver::SetKeywords(Local<String> property, Local<Value> value, const PROPERTY_SETTER_TYPE &info)
void InfoDictionaryDriver::SetKeywords(SET_ACCESSOR_METHOD_NAME_TYPE property, Local<Value> value, const PROPERTY_SETTER_TYPE &info)
{
CREATE_ISOLATE_CONTEXT;
InfoDictionaryDriver* infoDictionaryDriver = ObjectWrap::Unwrap<InfoDictionaryDriver>(info.Holder());
Expand All @@ -182,7 +182,7 @@ void InfoDictionaryDriver::SetKeywords(Local<String> property, Local<Value> valu
infoDictionaryDriver->InfoDictionaryInstance->Keywords.FromUTF8(*UTF_8_VALUE(value->TO_STRING()));
}

METHOD_RETURN_TYPE InfoDictionaryDriver::GetCreator(Local<String> property, const PROPERTY_TYPE &info)
METHOD_RETURN_TYPE InfoDictionaryDriver::GetCreator(SET_ACCESSOR_METHOD_NAME_TYPE property, const PROPERTY_TYPE &info)
{
CREATE_ISOLATE_CONTEXT;
CREATE_ESCAPABLE_SCOPE;
Expand All @@ -198,7 +198,7 @@ METHOD_RETURN_TYPE InfoDictionaryDriver::GetCreator(Local<String> property, cons
SET_ACCESSOR_RETURN_VALUE(NEW_STRING(infoDictionaryDriver->InfoDictionaryInstance->Creator.ToUTF8String().c_str()))
}

void InfoDictionaryDriver::SetCreator(Local<String> property, Local<Value> value, const PROPERTY_SETTER_TYPE &info)
void InfoDictionaryDriver::SetCreator(SET_ACCESSOR_METHOD_NAME_TYPE property, Local<Value> value, const PROPERTY_SETTER_TYPE &info)
{
CREATE_ISOLATE_CONTEXT;
InfoDictionaryDriver* infoDictionaryDriver = ObjectWrap::Unwrap<InfoDictionaryDriver>(info.Holder());
Expand All @@ -209,7 +209,7 @@ void InfoDictionaryDriver::SetCreator(Local<String> property, Local<Value> value
infoDictionaryDriver->InfoDictionaryInstance->Creator.FromUTF8(*UTF_8_VALUE(value->TO_STRING()));
}

METHOD_RETURN_TYPE InfoDictionaryDriver::GetProducer(Local<String> property, const PROPERTY_TYPE &info)
METHOD_RETURN_TYPE InfoDictionaryDriver::GetProducer(SET_ACCESSOR_METHOD_NAME_TYPE property, const PROPERTY_TYPE &info)
{
CREATE_ISOLATE_CONTEXT;
CREATE_ESCAPABLE_SCOPE;
Expand All @@ -225,7 +225,7 @@ METHOD_RETURN_TYPE InfoDictionaryDriver::GetProducer(Local<String> property, con
SET_ACCESSOR_RETURN_VALUE(NEW_STRING(infoDictionaryDriver->InfoDictionaryInstance->Producer.ToUTF8String().c_str()))
}

void InfoDictionaryDriver::SetProducer(Local<String> property, Local<Value> value, const PROPERTY_SETTER_TYPE &info)
void InfoDictionaryDriver::SetProducer(SET_ACCESSOR_METHOD_NAME_TYPE property, Local<Value> value, const PROPERTY_SETTER_TYPE &info)
{
CREATE_ISOLATE_CONTEXT;
InfoDictionaryDriver* infoDictionaryDriver = ObjectWrap::Unwrap<InfoDictionaryDriver>(info.Holder());
Expand All @@ -236,7 +236,7 @@ void InfoDictionaryDriver::SetProducer(Local<String> property, Local<Value> valu
infoDictionaryDriver->InfoDictionaryInstance->Producer.FromUTF8(*UTF_8_VALUE(value->TO_STRING()));
}

METHOD_RETURN_TYPE InfoDictionaryDriver::GetTrapped(Local<String> property, const PROPERTY_TYPE &info)
METHOD_RETURN_TYPE InfoDictionaryDriver::GetTrapped(SET_ACCESSOR_METHOD_NAME_TYPE property, const PROPERTY_TYPE &info)
{
CREATE_ISOLATE_CONTEXT;
CREATE_ESCAPABLE_SCOPE;
Expand All @@ -252,7 +252,7 @@ METHOD_RETURN_TYPE InfoDictionaryDriver::GetTrapped(Local<String> property, cons
SET_ACCESSOR_RETURN_VALUE(NEW_NUMBER(infoDictionaryDriver->InfoDictionaryInstance->Trapped))
}

void InfoDictionaryDriver::SetTrapped(Local<String> property, Local<Value> value, const PROPERTY_SETTER_TYPE &info)
void InfoDictionaryDriver::SetTrapped(SET_ACCESSOR_METHOD_NAME_TYPE property, Local<Value> value, const PROPERTY_SETTER_TYPE &info)
{
CREATE_ISOLATE_CONTEXT;
InfoDictionaryDriver* infoDictionaryDriver = ObjectWrap::Unwrap<InfoDictionaryDriver>(info.Holder());
Expand Down
28 changes: 14 additions & 14 deletions src/InfoDictionaryDriver.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,20 +39,20 @@ class InfoDictionaryDriver : public node::ObjectWrap

static METHOD_RETURN_TYPE New(const ARGS_TYPE& args);

static METHOD_RETURN_TYPE GetTitle(v8::Local<v8::String> property, const PROPERTY_TYPE &info);
static void SetTitle(v8::Local<v8::String> property,v8::Local<v8::Value> value,const PROPERTY_SETTER_TYPE &info);
static METHOD_RETURN_TYPE GetAuthor(v8::Local<v8::String> property, const PROPERTY_TYPE &info);
static void SetAuthor(v8::Local<v8::String> property, v8::Local<v8::Value> value, const PROPERTY_SETTER_TYPE &info);
static METHOD_RETURN_TYPE GetSubject(v8::Local<v8::String> property, const PROPERTY_TYPE &info);
static void SetSubject(v8::Local<v8::String> property, v8::Local<v8::Value> value, const PROPERTY_SETTER_TYPE &info);
static METHOD_RETURN_TYPE GetKeywords(v8::Local<v8::String> property, const PROPERTY_TYPE &info);
static void SetKeywords(v8::Local<v8::String> property, v8::Local<v8::Value> value, const PROPERTY_SETTER_TYPE &info);
static METHOD_RETURN_TYPE GetCreator(v8::Local<v8::String> property, const PROPERTY_TYPE &info);
static void SetCreator(v8::Local<v8::String> property, v8::Local<v8::Value> value, const PROPERTY_SETTER_TYPE &info);
static METHOD_RETURN_TYPE GetProducer(v8::Local<v8::String> property, const PROPERTY_TYPE &info);
static void SetProducer(v8::Local<v8::String> property, v8::Local<v8::Value> value, const PROPERTY_SETTER_TYPE &info);
static METHOD_RETURN_TYPE GetTrapped(v8::Local<v8::String> property, const PROPERTY_TYPE &info);
static void SetTrapped(v8::Local<v8::String> property, v8::Local<v8::Value> value, const PROPERTY_SETTER_TYPE &info);
static METHOD_RETURN_TYPE GetTitle(SET_ACCESSOR_METHOD_NAME_TYPE property, const PROPERTY_TYPE &info);
static void SetTitle(SET_ACCESSOR_METHOD_NAME_TYPE property,v8::Local<v8::Value> value,const PROPERTY_SETTER_TYPE &info);
static METHOD_RETURN_TYPE GetAuthor(SET_ACCESSOR_METHOD_NAME_TYPE property, const PROPERTY_TYPE &info);
static void SetAuthor(SET_ACCESSOR_METHOD_NAME_TYPE property, v8::Local<v8::Value> value, const PROPERTY_SETTER_TYPE &info);
static METHOD_RETURN_TYPE GetSubject(SET_ACCESSOR_METHOD_NAME_TYPE property, const PROPERTY_TYPE &info);
static void SetSubject(SET_ACCESSOR_METHOD_NAME_TYPE property, v8::Local<v8::Value> value, const PROPERTY_SETTER_TYPE &info);
static METHOD_RETURN_TYPE GetKeywords(SET_ACCESSOR_METHOD_NAME_TYPE property, const PROPERTY_TYPE &info);
static void SetKeywords(SET_ACCESSOR_METHOD_NAME_TYPE property, v8::Local<v8::Value> value, const PROPERTY_SETTER_TYPE &info);
static METHOD_RETURN_TYPE GetCreator(SET_ACCESSOR_METHOD_NAME_TYPE property, const PROPERTY_TYPE &info);
static void SetCreator(SET_ACCESSOR_METHOD_NAME_TYPE property, v8::Local<v8::Value> value, const PROPERTY_SETTER_TYPE &info);
static METHOD_RETURN_TYPE GetProducer(SET_ACCESSOR_METHOD_NAME_TYPE property, const PROPERTY_TYPE &info);
static void SetProducer(SET_ACCESSOR_METHOD_NAME_TYPE property, v8::Local<v8::Value> value, const PROPERTY_SETTER_TYPE &info);
static METHOD_RETURN_TYPE GetTrapped(SET_ACCESSOR_METHOD_NAME_TYPE property, const PROPERTY_TYPE &info);
static void SetTrapped(SET_ACCESSOR_METHOD_NAME_TYPE property, v8::Local<v8::Value> value, const PROPERTY_SETTER_TYPE &info);


// for dates i'm giving only setters. it's too bording to provide readers. you are the ones setting it for @#$@# sake.
Expand Down
2 changes: 1 addition & 1 deletion src/PDFBooleanDriver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ PDFObject* PDFBooleanDriver::GetObject()
return TheObject.GetPtr();
}

METHOD_RETURN_TYPE PDFBooleanDriver::GetValue(Local<String> property, const PROPERTY_TYPE &info)
METHOD_RETURN_TYPE PDFBooleanDriver::GetValue(SET_ACCESSOR_METHOD_NAME_TYPE property, const PROPERTY_TYPE &info)
{
CREATE_ISOLATE_CONTEXT;
CREATE_ESCAPABLE_SCOPE;
Expand Down
2 changes: 1 addition & 1 deletion src/PDFBooleanDriver.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,5 @@ class PDFBooleanDriver : public PDFObjectDriver


static METHOD_RETURN_TYPE New(const ARGS_TYPE& args);
static METHOD_RETURN_TYPE GetValue(v8::Local<v8::String> property, const PROPERTY_TYPE &info);
static METHOD_RETURN_TYPE GetValue(SET_ACCESSOR_METHOD_NAME_TYPE property, const PROPERTY_TYPE &info);
};
2 changes: 1 addition & 1 deletion src/PDFHexStringDriver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ PDFObject* PDFHexStringDriver::GetObject()
return TheObject.GetPtr();
}

METHOD_RETURN_TYPE PDFHexStringDriver::GetValue(Local<String> property, const PROPERTY_TYPE &info)
METHOD_RETURN_TYPE PDFHexStringDriver::GetValue(SET_ACCESSOR_METHOD_NAME_TYPE property, const PROPERTY_TYPE &info)
{
CREATE_ISOLATE_CONTEXT;
CREATE_ESCAPABLE_SCOPE;
Expand Down
2 changes: 1 addition & 1 deletion src/PDFHexStringDriver.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class PDFHexStringDriver : public PDFObjectDriver


static METHOD_RETURN_TYPE New(const ARGS_TYPE& args);
static METHOD_RETURN_TYPE GetValue(v8::Local<v8::String> property, const PROPERTY_TYPE&info);
static METHOD_RETURN_TYPE GetValue(SET_ACCESSOR_METHOD_NAME_TYPE property, const PROPERTY_TYPE&info);
static METHOD_RETURN_TYPE ToText(const ARGS_TYPE& args);
static METHOD_RETURN_TYPE ToBytesArray(const ARGS_TYPE& args);
};
2 changes: 1 addition & 1 deletion src/PDFIntegerDriver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ PDFObject* PDFIntegerDriver::GetObject()
return TheObject.GetPtr();
}

METHOD_RETURN_TYPE PDFIntegerDriver::GetValue(Local<String> property, const PROPERTY_TYPE &info)
METHOD_RETURN_TYPE PDFIntegerDriver::GetValue(SET_ACCESSOR_METHOD_NAME_TYPE property, const PROPERTY_TYPE &info)
{
CREATE_ISOLATE_CONTEXT;
CREATE_ESCAPABLE_SCOPE;
Expand Down
2 changes: 1 addition & 1 deletion src/PDFIntegerDriver.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,5 @@ class PDFIntegerDriver : public PDFObjectDriver
private:

static METHOD_RETURN_TYPE New(const ARGS_TYPE& args);
static METHOD_RETURN_TYPE GetValue(v8::Local<v8::String> property, const PROPERTY_TYPE &info);
static METHOD_RETURN_TYPE GetValue(SET_ACCESSOR_METHOD_NAME_TYPE property, const PROPERTY_TYPE &info);
};
2 changes: 1 addition & 1 deletion src/PDFLiteralStringDriver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ PDFObject* PDFLiteralStringDriver::GetObject()
return TheObject.GetPtr();
}

METHOD_RETURN_TYPE PDFLiteralStringDriver::GetValue(Local<String> property, const PROPERTY_TYPE &info)
METHOD_RETURN_TYPE PDFLiteralStringDriver::GetValue(SET_ACCESSOR_METHOD_NAME_TYPE property, const PROPERTY_TYPE &info)
{
CREATE_ISOLATE_CONTEXT;
CREATE_ESCAPABLE_SCOPE;
Expand Down
2 changes: 1 addition & 1 deletion src/PDFLiteralStringDriver.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class PDFLiteralStringDriver : public PDFObjectDriver


static METHOD_RETURN_TYPE New(const ARGS_TYPE& args);
static METHOD_RETURN_TYPE GetValue(v8::Local<v8::String> property, const PROPERTY_TYPE &info);
static METHOD_RETURN_TYPE GetValue(SET_ACCESSOR_METHOD_NAME_TYPE property, const PROPERTY_TYPE &info);
static METHOD_RETURN_TYPE ToText(const ARGS_TYPE& args);
static METHOD_RETURN_TYPE ToBytesArray(const ARGS_TYPE& args);
};
2 changes: 1 addition & 1 deletion src/PDFNameDriver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ PDFObject* PDFNameDriver::GetObject()
return TheObject.GetPtr();
}

METHOD_RETURN_TYPE PDFNameDriver::GetValue(Local<String> property, const PROPERTY_TYPE &info)
METHOD_RETURN_TYPE PDFNameDriver::GetValue(SET_ACCESSOR_METHOD_NAME_TYPE property, const PROPERTY_TYPE &info)
{
CREATE_ISOLATE_CONTEXT;
CREATE_ESCAPABLE_SCOPE;
Expand Down
2 changes: 1 addition & 1 deletion src/PDFNameDriver.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,5 @@ class PDFNameDriver : public PDFObjectDriver
private:

static METHOD_RETURN_TYPE New(const ARGS_TYPE& args);
static METHOD_RETURN_TYPE GetValue(v8::Local<v8::String> property, const PROPERTY_TYPE &info);
static METHOD_RETURN_TYPE GetValue(SET_ACCESSOR_METHOD_NAME_TYPE property, const PROPERTY_TYPE &info);
};
2 changes: 1 addition & 1 deletion src/PDFNullDriver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ PDFObject* PDFNullDriver::GetObject()
return TheObject.GetPtr();
}

METHOD_RETURN_TYPE PDFNullDriver::GetValue(Local<String> property, const PROPERTY_TYPE &info)
METHOD_RETURN_TYPE PDFNullDriver::GetValue(SET_ACCESSOR_METHOD_NAME_TYPE property, const PROPERTY_TYPE &info)
{
CREATE_ISOLATE_CONTEXT;
CREATE_ESCAPABLE_SCOPE;
Expand Down
2 changes: 1 addition & 1 deletion src/PDFNullDriver.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,5 @@ class PDFNullDriver : public PDFObjectDriver
private:

static METHOD_RETURN_TYPE New(const ARGS_TYPE& args);
static METHOD_RETURN_TYPE GetValue(v8::Local<v8::String> property, const PROPERTY_TYPE &info);
static METHOD_RETURN_TYPE GetValue(SET_ACCESSOR_METHOD_NAME_TYPE property, const PROPERTY_TYPE &info);
};
Loading

0 comments on commit 6a6e72f

Please sign in to comment.