Avoid unqualified calls to `std::move`

This commit is contained in:
Martchus 2023-02-18 19:03:29 +01:00
parent 9f8deafd5a
commit 7bb9134fd3
2 changed files with 9 additions and 9 deletions

View File

@ -89,12 +89,12 @@ PasswordFile::PasswordFile(const PasswordFile &other)
* \brief Moves the password file. * \brief Moves the password file.
*/ */
PasswordFile::PasswordFile(PasswordFile &&other) PasswordFile::PasswordFile(PasswordFile &&other)
: m_path(move(other.m_path)) : m_path(std::move(other.m_path))
, m_password(move(other.m_password)) , m_password(std::move(other.m_password))
, m_rootEntry(move(other.m_rootEntry)) , m_rootEntry(std::move(other.m_rootEntry))
, m_extendedHeader(move(other.m_extendedHeader)) , m_extendedHeader(std::move(other.m_extendedHeader))
, m_encryptedExtendedHeader(move(other.m_encryptedExtendedHeader)) , m_encryptedExtendedHeader(std::move(other.m_encryptedExtendedHeader))
, m_file(move(other.m_file)) , m_file(std::move(other.m_file))
, m_freader(BinaryReader(&m_file)) , m_freader(BinaryReader(&m_file))
, m_fwriter(BinaryWriter(&m_file)) , m_fwriter(BinaryWriter(&m_file))
, m_version(other.m_version) , m_version(other.m_version)
@ -294,7 +294,7 @@ void PasswordFile::load()
msg += ERR_error_string(errorCode, nullptr); msg += ERR_error_string(errorCode, nullptr);
errorCode = ERR_get_error(); errorCode = ERR_get_error();
} }
throw CryptoException(move(msg)); throw CryptoException(std::move(msg));
} }
if (ctx) { if (ctx) {
@ -550,7 +550,7 @@ void PasswordFile::write(PasswordFileSaveFlags options)
msg += ERR_error_string(errorCode, nullptr); msg += ERR_error_string(errorCode, nullptr);
errorCode = ERR_get_error(); errorCode = ERR_get_error();
} }
throw CryptoException(move(msg)); throw CryptoException(std::move(msg));
} }
if (ctx) { if (ctx) {

View File

@ -45,7 +45,7 @@ OpenSslRandomDevice::result_type OpenSslRandomDevice::operator()() const
errorMsg += ERR_error_string(errorCode, nullptr); errorMsg += ERR_error_string(errorCode, nullptr);
errorCode = ERR_get_error(); errorCode = ERR_get_error();
} }
throw Io::CryptoException(move(errorMsg)); throw Io::CryptoException(std::move(errorMsg));
} }
/*! /*!