diff options
author | Janek Bevendorff <janek@jbev.net> | 2018-02-18 23:01:22 +0300 |
---|---|---|
committer | Janek Bevendorff <janek@jbev.net> | 2018-02-21 15:23:14 +0300 |
commit | 5410d78bbbdd5aa2b7382de60e702e05d4bbc6f3 (patch) | |
tree | ec5716c8093125a42aabad868e131ac3b9ca0314 /src/core/CustomData.h | |
parent | 114f00e1e82e3f3c26c8a2e12c9ef2e1b1942462 (diff) |
Properly save custom header data
Ensure adding custom data upgrades to KDBX4
Implement review feedback
Diffstat (limited to 'src/core/CustomData.h')
-rw-r--r-- | src/core/CustomData.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/core/CustomData.h b/src/core/CustomData.h index 722d9bd28..3a6b64bce 100644 --- a/src/core/CustomData.h +++ b/src/core/CustomData.h @@ -1,6 +1,5 @@ /* - * Copyright (C) 2012 Felix Geyer <debfx@fobos.de> - * Copyright (C) 2017 KeePassXC Team <team@keepassxc.org> + * Copyright (C) 2018 KeePassXC Team <team@keepassxc.org> * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -16,17 +15,17 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#ifndef KEEPASSX_CUSTOMDATA_H -#define KEEPASSX_CUSTOMDATA_H +#ifndef KEEPASSXC_CUSTOMDATA_H +#define KEEPASSXC_CUSTOMDATA_H -#include <QMap> +#include <QHash> #include <QObject> #include <QSet> #include <QStringList> class CustomData : public QObject { - Q_OBJECT +Q_OBJECT public: explicit CustomData(QObject* parent = nullptr); @@ -40,7 +39,8 @@ public: void rename(const QString& oldKey, const QString& newKey); void clear(); bool isEmpty() const; - int dataSize(); + int size() const; + int dataSize() const; void copyDataFrom(const CustomData* other); bool operator==(const CustomData& other) const; bool operator!=(const CustomData& other) const; @@ -61,4 +61,4 @@ private: QHash<QString, QString> m_data; }; -#endif // KEEPASSX_CUSTOMDATA_H +#endif // KEEPASSXC_CUSTOMDATA_H |