Skip to content

Commit

Permalink
more guards
Browse files Browse the repository at this point in the history
  • Loading branch information
andiwand committed Dec 25, 2024
1 parent ca0650f commit ec1f3b9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/odr/internal/open_strategy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,7 @@ open_strategy::open_file(std::shared_ptr<abstract::File> file, FileType as,
}
return nullptr;
}
#ifdef ODR_WITH_WVWARE
if (with == DecoderEngine::wvware) {
try {
auto memory_file = std::make_shared<common::MemoryFile>(*file);
Expand All @@ -259,6 +260,7 @@ open_strategy::open_file(std::shared_ptr<abstract::File> file, FileType as,
}
return nullptr;
}
#endif
return nullptr;
}

Expand All @@ -270,6 +272,7 @@ open_strategy::open_file(std::shared_ptr<abstract::File> file, FileType as,
}
return nullptr;
}
#ifdef ODR_WITH_PDF2HTMLEX
if (with == DecoderEngine::poppler) {
try {
auto memory_file = std::make_shared<common::MemoryFile>(*file);
Expand All @@ -278,6 +281,7 @@ open_strategy::open_file(std::shared_ptr<abstract::File> file, FileType as,
}
return nullptr;
}
#endif
return nullptr;
}

Expand Down

0 comments on commit ec1f3b9

Please sign in to comment.