Index: fpdfsdk/javascript/JS_Value.cpp |
diff --git a/fpdfsdk/src/javascript/JS_Value.cpp b/fpdfsdk/javascript/JS_Value.cpp |
similarity index 97% |
rename from fpdfsdk/src/javascript/JS_Value.cpp |
rename to fpdfsdk/javascript/JS_Value.cpp |
index 70ccdb5e97b1eea00f6eb9bc5a5e9ca27dab666f..8e5e463e61c26db1b1dbf87154df71ab0cbf0632 100644 |
--- a/fpdfsdk/src/javascript/JS_Value.cpp |
+++ b/fpdfsdk/javascript/JS_Value.cpp |
@@ -4,7 +4,7 @@ |
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
-#include "fpdfsdk/src/javascript/JS_Value.h" |
+#include "fpdfsdk/javascript/JS_Value.h" |
#include <time.h> |
@@ -13,9 +13,9 @@ |
#include <limits> |
#include <vector> |
-#include "fpdfsdk/src/javascript/Document.h" |
-#include "fpdfsdk/src/javascript/JS_Define.h" |
-#include "fpdfsdk/src/javascript/JS_Object.h" |
+#include "fpdfsdk/javascript/Document.h" |
+#include "fpdfsdk/javascript/JS_Define.h" |
+#include "fpdfsdk/javascript/JS_Object.h" |
static const FX_DWORD g_nan[2] = {0, 0x7FF80000}; |
static double GetNan() { |
@@ -23,12 +23,10 @@ static double GetNan() { |
} |
CJS_Value::CJS_Value(CJS_Runtime* pRuntime) |
- : m_eType(VT_unknown), m_pJSRuntime(pRuntime) { |
-} |
+ : m_eType(VT_unknown), m_pJSRuntime(pRuntime) {} |
CJS_Value::CJS_Value(CJS_Runtime* pRuntime, v8::Local<v8::Value> pValue, Type t) |
- : m_eType(t), m_pValue(pValue), m_pJSRuntime(pRuntime) { |
-} |
+ : m_eType(t), m_pValue(pValue), m_pJSRuntime(pRuntime) {} |
CJS_Value::CJS_Value(CJS_Runtime* pRuntime, const int& iValue) |
: m_pJSRuntime(pRuntime) { |
@@ -290,11 +288,9 @@ CJS_PropValue::CJS_PropValue(const CJS_Value& value) |
: CJS_Value(value), m_bIsSetting(0) {} |
CJS_PropValue::CJS_PropValue(CJS_Runtime* pRuntime) |
- : CJS_Value(pRuntime), m_bIsSetting(0) { |
-} |
+ : CJS_Value(pRuntime), m_bIsSetting(0) {} |
-CJS_PropValue::~CJS_PropValue() { |
-} |
+CJS_PropValue::~CJS_PropValue() {} |
void CJS_PropValue::operator<<(int iValue) { |
ASSERT(!m_bIsSetting); |
@@ -412,8 +408,7 @@ CJS_PropValue::operator v8::Local<v8::Value>() const { |
return m_pValue; |
} |
-CJS_Array::CJS_Array(CJS_Runtime* pRuntime) : m_pJSRuntime(pRuntime) { |
-} |
+CJS_Array::CJS_Array(CJS_Runtime* pRuntime) : m_pJSRuntime(pRuntime) {} |
CJS_Array::~CJS_Array() {} |
@@ -454,8 +449,7 @@ CJS_Array::operator v8::Local<v8::Array>() { |
return m_pArray; |
} |
-CJS_Date::CJS_Date(CJS_Runtime* pRuntime) : m_pJSRuntime(pRuntime) { |
-} |
+CJS_Date::CJS_Date(CJS_Runtime* pRuntime) : m_pJSRuntime(pRuntime) {} |
CJS_Date::CJS_Date(CJS_Runtime* pRuntime, double dMsecTime) |
: m_pJSRuntime(pRuntime) { |
@@ -660,10 +654,10 @@ double _TimeFromYear(int y) { |
} |
double _TimeFromYearMonth(int y, int m) { |
- static int daysMonth[12] = { |
- 0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334}; |
- static int leapDaysMonth[12] = { |
- 0, 31, 60, 91, 121, 152, 182, 213, 244, 274, 305, 335}; |
+ static int daysMonth[12] = {0, 31, 59, 90, 120, 151, |
+ 181, 212, 243, 273, 304, 334}; |
+ static int leapDaysMonth[12] = {0, 31, 60, 91, 121, 152, |
+ 182, 213, 244, 274, 305, 335}; |
int* pMonth = daysMonth; |
if (_isLeapYear(y)) |
pMonth = leapDaysMonth; |
@@ -814,7 +808,8 @@ double JS_DateParse(const wchar_t* str) { |
v8::Local<v8::Object> o = v->ToObject(context).ToLocalChecked(); |
v = o->Get(context, v8::String::NewFromUtf8(pIsolate, "parse", |
v8::NewStringType::kNormal) |
- .ToLocalChecked()).ToLocalChecked(); |
+ .ToLocalChecked()) |
+ .ToLocalChecked(); |
if (v->IsFunction()) { |
v8::Local<v8::Function> funC = v8::Local<v8::Function>::Cast(v); |