summaryrefslogtreecommitdiff
path: root/xfa/fxjse/value.h
diff options
context:
space:
mode:
authordsinclair <dsinclair@chromium.org>2016-03-30 12:59:04 -0700
committerCommit bot <commit-bot@chromium.org>2016-03-30 12:59:04 -0700
commit04fd27b3742ace6e76d70e19ca7a4ff178c4cdc5 (patch)
treee8cee05a1b1cca1e1e3e43574871b3bb453f2b01 /xfa/fxjse/value.h
parent85ff9870a48e3ad69228e7fa813b558f51483028 (diff)
downloadpdfium-04fd27b3742ace6e76d70e19ca7a4ff178c4cdc5.tar.xz
Replace FXJSE_DOUBLE with double
FXJSE_DOUBLE was just defined as double. Replace with actual type to make things clearer. BUG=pdfium:81 Review URL: https://codereview.chromium.org/1842013003
Diffstat (limited to 'xfa/fxjse/value.h')
-rw-r--r--xfa/fxjse/value.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/xfa/fxjse/value.h b/xfa/fxjse/value.h
index 7e140d7975..e728b8d857 100644
--- a/xfa/fxjse/value.h
+++ b/xfa/fxjse/value.h
@@ -125,12 +125,12 @@ class CFXJSE_Value {
v8::Local<v8::Value>::New(m_pIsolate, m_hValue);
return static_cast<FX_FLOAT>(hValue->NumberValue());
}
- V8_INLINE FXJSE_DOUBLE ToDouble() const {
+ V8_INLINE double ToDouble() const {
ASSERT(!m_hValue.IsEmpty());
CFXJSE_ScopeUtil_IsolateHandleRootContext scope(m_pIsolate);
v8::Local<v8::Value> hValue =
v8::Local<v8::Value>::New(m_pIsolate, m_hValue);
- return static_cast<FXJSE_DOUBLE>(hValue->NumberValue());
+ return static_cast<double>(hValue->NumberValue());
}
V8_INLINE int32_t ToInteger() const {
ASSERT(!m_hValue.IsEmpty());
@@ -172,7 +172,7 @@ class CFXJSE_Value {
v8::Local<v8::Value> hValue = v8::Integer::New(m_pIsolate, nInteger);
m_hValue.Reset(m_pIsolate, hValue);
}
- V8_INLINE void SetDouble(FXJSE_DOUBLE dDouble) {
+ V8_INLINE void SetDouble(double dDouble) {
CFXJSE_ScopeUtil_IsolateHandle scope(m_pIsolate);
v8::Local<v8::Value> hValue = v8::Number::New(m_pIsolate, dDouble);
m_hValue.Reset(m_pIsolate, hValue);
@@ -192,7 +192,7 @@ class CFXJSE_Value {
}
void SetHostObject(void* lpObject, CFXJSE_Class* lpClass);
void SetArray(uint32_t uValueCount, CFXJSE_Value** rgValues);
- void SetDate(FXJSE_DOUBLE dDouble);
+ void SetDate(double dDouble);
public:
FX_BOOL GetObjectProperty(const CFX_ByteStringC& szPropName,