Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
K0R0L committed Sep 26, 2023
1 parent bfa76ec commit 5a2695b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions macos/ONLYOFFICE/Code/Views/NSCefView.mm
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ - (void)createFileWithName:(NSString *)name type:(NSInteger)type {
CCefViewEditor * editorView = dynamic_cast<CCefViewEditor *>(m_pCefView->GetCefView());

if (editorView) {
editorView->CreateLocalFile((int)type, [name stdwstring]);
editorView->CreateLocalFile((AscEditorType)type, [name stdwstring]);
}
}
}
Expand All @@ -163,7 +163,7 @@ - (void)createFileWithNameFromTemplate:(NSString *)name tplpath:(NSString *)path
CCefViewEditor * editorView = dynamic_cast<CCefViewEditor *>(m_pCefView->GetCefView());

if (editorView) {
editorView->CreateLocalFile(0, [name stdwstring], [path stdwstring]);
editorView->CreateLocalFile(AscEditorType::etDocument, [name stdwstring], [path stdwstring]);
}
}
}
Expand Down

0 comments on commit 5a2695b

Please sign in to comment.