summaryrefslogtreecommitdiff
path: root/fxjs/cjs_timerobj.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'fxjs/cjs_timerobj.cpp')
-rw-r--r--fxjs/cjs_timerobj.cpp11
1 files changed, 3 insertions, 8 deletions
diff --git a/fxjs/cjs_timerobj.cpp b/fxjs/cjs_timerobj.cpp
index 172ee5c04e..59d38423af 100644
--- a/fxjs/cjs_timerobj.cpp
+++ b/fxjs/cjs_timerobj.cpp
@@ -22,15 +22,10 @@ void CJS_TimerObj::DefineJSObjects(CFXJS_Engine* pEngine) {
}
CJS_TimerObj::CJS_TimerObj(v8::Local<v8::Object> pObject)
- : CJS_Object(pObject) {
- m_pEmbedObj = pdfium::MakeUnique<TimerObj>(this);
-}
-
-TimerObj::TimerObj(CJS_Object* pJSObject)
- : CJS_EmbedObj(pJSObject), m_nTimerID(0) {}
+ : CJS_Object(pObject), m_nTimerID(0) {}
-TimerObj::~TimerObj() = default;
+CJS_TimerObj::~CJS_TimerObj() = default;
-void TimerObj::SetTimer(GlobalTimer* pTimer) {
+void CJS_TimerObj::SetTimer(GlobalTimer* pTimer) {
m_nTimerID = pTimer->GetTimerID();
}