summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2017-09-12 23:19:32 +0200
committerMontel Laurent <[email protected]>2017-09-12 23:19:32 +0200
commit22e1a633a3b88c575e183eaabd5085dd02c2a1c3 (patch)
treec5b9130b0312dbe9e987e660594c179b86c3c4fd
parent10156a33b671ab5f26673faefa67eb66f0567923 (diff)
Clean up
-rw-r--r--src/folderarchive/folderarchiveaccountinfo.cpp8
-rw-r--r--src/folderarchive/folderarchiveaccountinfo.h4
2 files changed, 2 insertions, 10 deletions
diff --git a/src/folderarchive/folderarchiveaccountinfo.cpp b/src/folderarchive/folderarchiveaccountinfo.cpp
index b64b6b0..248838d 100644
--- a/src/folderarchive/folderarchiveaccountinfo.cpp
+++ b/src/folderarchive/folderarchiveaccountinfo.cpp
@@ -21,18 +21,10 @@
#include <KConfigGroup>
FolderArchiveAccountInfo::FolderArchiveAccountInfo()
- : mArchiveTopLevelCollectionId(-1)
- , mArchiveType(UniqueFolder)
- , mEnabled(false)
- , mKeepExistingStructure(false)
{
}
FolderArchiveAccountInfo::FolderArchiveAccountInfo(const KConfigGroup &config)
- : mArchiveTopLevelCollectionId(-1)
- , mArchiveType(UniqueFolder)
- , mEnabled(false)
- , mKeepExistingStructure(false)
{
readConfig(config);
}
diff --git a/src/folderarchive/folderarchiveaccountinfo.h b/src/folderarchive/folderarchiveaccountinfo.h
index 0dee364..c164975 100644
--- a/src/folderarchive/folderarchiveaccountinfo.h
+++ b/src/folderarchive/folderarchiveaccountinfo.h
@@ -58,9 +58,9 @@ public:
bool operator==(const FolderArchiveAccountInfo &other) const;
private:
- Akonadi::Collection::Id mArchiveTopLevelCollectionId;
+ Akonadi::Collection::Id mArchiveTopLevelCollectionId = -1;
QString mInstanceName;
- FolderArchiveAccountInfo::FolderArchiveType mArchiveType;
+ FolderArchiveAccountInfo::FolderArchiveType mArchiveType = UniqueFolder;
bool mEnabled = false;
bool mKeepExistingStructure = false;
};