Make Field default-constructable
This commit is contained in:
parent
69161989ae
commit
405afe4e31
|
@ -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.
|
* \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
|
bool Entry::isIndirectChildOf(NodeEntry *entry) const
|
||||||
{
|
{
|
||||||
|
|
|
@ -14,6 +14,7 @@ class AccountEntry;
|
||||||
|
|
||||||
class PASSWORD_FILE_EXPORT Field {
|
class PASSWORD_FILE_EXPORT Field {
|
||||||
public:
|
public:
|
||||||
|
Field();
|
||||||
Field(AccountEntry *tiedAccount, const std::string &name = std::string(), const std::string &value = std::string());
|
Field(AccountEntry *tiedAccount, const std::string &name = std::string(), const std::string &value = std::string());
|
||||||
Field(AccountEntry *tiedAccount, std::istream &stream);
|
Field(AccountEntry *tiedAccount, std::istream &stream);
|
||||||
|
|
||||||
|
@ -38,6 +39,12 @@ protected:
|
||||||
std::string m_extendedData;
|
std::string m_extendedData;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
inline Field::Field()
|
||||||
|
: m_type(FieldType::Normal)
|
||||||
|
, m_tiedAccount(nullptr)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* \brief Returns an indication whether the entry is empty.
|
* \brief Returns an indication whether the entry is empty.
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue