MCPcopy Create free account
hub / github.com/OpenBoardView/OpenBoardView / close

Method close

src/openboardview/PDFBridge/PDFFile.cpp:19–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17}
18
19void PDFFile::close() {
20 if (this->pdfBridge == nullptr) {
21 SDL_LogError(SDL_LOG_CATEGORY_ERROR, "%s", "PDFFile Could not close: pdfBridge == nullptr");
22 return;
23 }
24 this->pdfBridge->CloseDocument();
25}
26
27void PDFFile::loadFromConfig(const filesystem::path &filepath) {
28 configFilepath = filepath; // save filepath for latter use with writeToConfig

Callers 5

SaveDefaultMethod · 0.80
LoadMethod · 0.80
WriteStrMethod · 0.80
file_as_bufferFunction · 0.80
clearMethod · 0.80

Calls 1

CloseDocumentMethod · 0.45

Tested by

no test coverage detected