mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-04-07 13:55:33 +08:00
trying to understand
This commit is contained in:
@ -100,8 +100,6 @@ int main(int argc, char *argv[])
|
||||
std::wstring sBuildFile = NSFile::CUtf8Converter::GetUnicodeStringFromUTF8((BYTE*)sBuildFileA.c_str(), (LONG)sBuildFileA.length());
|
||||
#endif
|
||||
|
||||
// NSDoctRenderer::CDocBuilder::Initialize();
|
||||
|
||||
if (true)
|
||||
{
|
||||
NSDoctRenderer::CDocBuilder oBuilder;
|
||||
@ -139,7 +137,5 @@ int main(int argc, char *argv[])
|
||||
oBuilder.Run(sBuildFile.c_str());
|
||||
}
|
||||
|
||||
// NSDoctRenderer::CDocBuilder::Dispose();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
@ -403,7 +403,7 @@ namespace NSDoctRenderer
|
||||
JSSmart<CJSObject> global_js = context->GetGlobal();
|
||||
|
||||
JSSmart<CJSObject> js_objectApi = api_js_maybe_null;
|
||||
if (js_objectApi->isUndefined())
|
||||
if (!js_objectApi.IsInit() || js_objectApi->isUndefined())
|
||||
js_objectApi = global_js->get("Api")->toObject();
|
||||
|
||||
bool bIsBreak = false;
|
||||
|
||||
Reference in New Issue
Block a user