Fix typos found via `codespell --skip .git -w`
This commit is contained in:
parent
5935ea0691
commit
9b4fcdc2b3
|
@ -10,7 +10,7 @@ set(META_APP_URL "https://github.com/${META_APP_AUTHOR}/${META_PROJECT_NAME}")
|
|||
set(META_APP_DESCRIPTION "C++ library to read/write passwords from/to encrypted files")
|
||||
set(META_VERSION_MAJOR 5)
|
||||
set(META_VERSION_MINOR 0)
|
||||
set(META_VERSION_PATCH 5)
|
||||
set(META_VERSION_PATCH 6)
|
||||
set(META_ADD_DEFAULT_CPP_UNIT_TEST_APPLICATION ON)
|
||||
|
||||
# add project files
|
||||
|
|
|
@ -5,7 +5,7 @@ namespace Io {
|
|||
* \class CryptoException
|
||||
* \brief The exception that is thrown when an encryption/decryption error occurs.
|
||||
* \remarks Must not have any inline methods/c'tors/d'tors (so the vtable is invoked in any compile unit).
|
||||
* Otherwise it is not possible to throw/catch it accross library boundaries under Android.
|
||||
* Otherwise it is not possible to throw/catch it across library boundaries under Android.
|
||||
*/
|
||||
|
||||
/*!
|
||||
|
|
|
@ -20,7 +20,7 @@ namespace Io {
|
|||
|
||||
/*!
|
||||
* \class Entry
|
||||
* \brief Instances of the Entry class form a hierarchic data strucutre used to store
|
||||
* \brief Instances of the Entry class form a hierarchic data structure used to store
|
||||
* account information.
|
||||
*
|
||||
* Entries can be serialized and deserialized using the parse() and make() methods.
|
||||
|
@ -320,7 +320,7 @@ void NodeEntry::replaceChild(size_t at, Entry *newChild)
|
|||
return;
|
||||
}
|
||||
|
||||
// detatch the old child
|
||||
// detach the old child
|
||||
m_children[at]->m_parent = nullptr;
|
||||
m_children[at]->m_index = -1;
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@ namespace Io {
|
|||
* \class ParsingException
|
||||
* \brief The exception that is thrown when a parsing error occurs.
|
||||
* \remarks Must not have any inline methods/c'tors/d'tors (so the vtable is invoked in any compile unit).
|
||||
* Otherwise it is not possible to throw/catch it accross library boundaries under Android.
|
||||
* Otherwise it is not possible to throw/catch it across library boundaries under Android.
|
||||
*/
|
||||
|
||||
/*!
|
||||
|
|
|
@ -116,7 +116,7 @@ void PasswordFile::open(PasswordFileOpenFlags options)
|
|||
{
|
||||
close();
|
||||
if (m_path.empty()) {
|
||||
throw std::ios_base::failure("Unable to open file because path is emtpy.");
|
||||
throw std::ios_base::failure("Unable to open file because path is empty.");
|
||||
}
|
||||
m_file.open(
|
||||
m_path, options & PasswordFileOpenFlags::ReadOnly ? ios_base::in | ios_base::binary : ios_base::in | ios_base::out | ios_base::binary);
|
||||
|
@ -450,7 +450,7 @@ void PasswordFile::write(PasswordFileSaveFlags options)
|
|||
}
|
||||
m_fwriter.writeByte(flags);
|
||||
|
||||
// write extened header
|
||||
// write extended header
|
||||
if (version >= 0x4U) {
|
||||
if (m_extendedHeader.size() > numeric_limits<std::uint16_t>::max()) {
|
||||
throw runtime_error("Extended header exceeds maximum size.");
|
||||
|
@ -463,7 +463,7 @@ void PasswordFile::write(PasswordFileSaveFlags options)
|
|||
stringstream buffstr(stringstream::in | stringstream::out | stringstream::binary);
|
||||
buffstr.exceptions(ios_base::failbit | ios_base::badbit);
|
||||
|
||||
// write encrypted extened header
|
||||
// write encrypted extended header
|
||||
if (version >= 0x5U) {
|
||||
if (m_encryptedExtendedHeader.size() > numeric_limits<std::uint16_t>::max()) {
|
||||
throw runtime_error("Encrypted extended header exceeds maximum size.");
|
||||
|
|
|
@ -160,7 +160,7 @@ void EntryTests::testEntryByPath()
|
|||
CPPUNIT_ASSERT_EQUAL_MESSAGE("return current instance", static_cast<Entry *>(&root), root.entryByPath(path));
|
||||
|
||||
path = { "root", "foo" };
|
||||
CPPUNIT_ASSERT_MESSAGE("nullptr for non-existant path", !root.entryByPath(path));
|
||||
CPPUNIT_ASSERT_MESSAGE("nullptr for non-existent path", !root.entryByPath(path));
|
||||
|
||||
path = { "root", "node" };
|
||||
const auto *const node = root.entryByPath(path, true, &createNode);
|
||||
|
|
Loading…
Reference in New Issue