Skip to content

Commit f2fcf92

Browse files
committed
fix
1 parent 404a9bf commit f2fcf92

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/odr/internal/odf/odf_file.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ OpenDocumentFile::decrypt(const std::string &password) const noexcept {
7878
decrypted_file->m_file_meta =
7979
parse_file_meta(*decrypted_file->m_filesystem, nullptr, true);
8080
decrypted_file->m_encryption_state = EncryptionState::decrypted;
81-
return std::move(decrypted_file);
81+
return decrypted_file;
8282
}
8383

8484
std::shared_ptr<abstract::Document> OpenDocumentFile::document() const {

src/odr/internal/ooxml/ooxml_file.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ OfficeOpenXmlFile::decrypt(const std::string &password) const noexcept {
8080
decrypted->m_filesystem = zip::ZipFile(memory_file).archive()->filesystem();
8181
decrypted->m_file_meta = parse_file_meta(*decrypted->m_filesystem);
8282
decrypted->m_encryption_state = EncryptionState::decrypted;
83-
return std::move(decrypted);
83+
return decrypted;
8484
}
8585

8686
std::shared_ptr<abstract::Document> OfficeOpenXmlFile::document() const {

src/odr/internal/pdf_poppler/poppler_pdf_file.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ PopplerPdfFile::decrypt(const std::string &password) const noexcept {
8989
try {
9090
decrypted_file->open(password);
9191
if (decrypted_file->encryption_state() == EncryptionState::decrypted) {
92-
return std::move(decrypted_file);
92+
return decrypted_file;
9393
}
9494
} catch (const std::exception &e) {
9595
}

0 commit comments

Comments
 (0)