fix some clang-tidy member init suggestions.
Change-Id: Iebf251c519989e23a995ecf93abe008ab54b85ad
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/101250
Commit-Queue: Tom Sepez <tsepez@chromium.org>
Reviewed-by: Lei Zhang <thestig@chromium.org>
diff --git a/fxjs/cjs_global.cpp b/fxjs/cjs_global.cpp
index cc5997a..ffbbfcb 100644
--- a/fxjs/cjs_global.cpp
+++ b/fxjs/cjs_global.cpp
@@ -155,8 +155,8 @@
}
CJS_Global::CJS_Global(v8::Local<v8::Object> pObject, CJS_Runtime* pRuntime)
- : CJS_Object(pObject, pRuntime) {
- m_pGlobalData = CFX_GlobalData::GetRetainedInstance(nullptr);
+ : CJS_Object(pObject, pRuntime),
+ m_pGlobalData(CFX_GlobalData::GetRetainedInstance(nullptr)) {
UpdateGlobalPersistentVariables();
}