We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 790065b commit cff8ba8Copy full SHA for cff8ba8
1 file changed
src/odr/internal/ooxml/ooxml_file.cpp
@@ -20,9 +20,13 @@ class Document;
20
namespace odr::internal::ooxml {
21
22
OfficeOpenXmlFile::OfficeOpenXmlFile(
23
- std::shared_ptr<abstract::ReadableFilesystem> filesystem) {
24
- m_file_meta = parse_file_meta(*filesystem);
25
- m_filesystem = std::move(filesystem);
+ std::shared_ptr<abstract::ReadableFilesystem> filesystem)
+ : m_filesystem(std::move(filesystem)) {
+ m_file_meta = parse_file_meta(*m_filesystem);
26
+
27
+ if (m_file_meta.password_encrypted) {
28
+ m_encryption_state = EncryptionState::encrypted;
29
+ }
30
}
31
32
std::shared_ptr<abstract::File> OfficeOpenXmlFile::file() const noexcept {
0 commit comments