diff --git a/io/entry.cpp b/io/entry.cpp index 28a0bd7..edd327b 100644 --- a/io/entry.cpp +++ b/io/entry.cpp @@ -136,6 +136,7 @@ void Entry::setParent(NodeEntry *parent, int index) /*! * \brief Returns an indication whether the instance is an indirect child of the specified \a entry. + * \todo Make \a entry const in v4. */ bool Entry::isIndirectChildOf(NodeEntry *entry) const { diff --git a/io/field.h b/io/field.h index 97df2cb..da041b8 100644 --- a/io/field.h +++ b/io/field.h @@ -14,6 +14,7 @@ class AccountEntry; class PASSWORD_FILE_EXPORT Field { public: + Field(); Field(AccountEntry *tiedAccount, const std::string &name = std::string(), const std::string &value = std::string()); Field(AccountEntry *tiedAccount, std::istream &stream); @@ -38,6 +39,12 @@ protected: std::string m_extendedData; }; +inline Field::Field() + : m_type(FieldType::Normal) + , m_tiedAccount(nullptr) +{ +} + /*! * \brief Returns an indication whether the entry is empty. */