Cleanup CLI includes across all components

* Remove unused include files
* Move includes out of widely shared headers (reduced rebuild time)
* Consolidate code for Analyze command
This commit is contained in:
Jonathan White committed 2021-04-25 07:38:21 -04:00
1 parent dc496fd1d9
commit be3e77d721
33 files changed
+79 -232

No files matched your search

+8 -3
View File
@@ -17,6 +17,11 @@
#include "Utils.h"
#include "core/Database.h"
#include "core/EntryAttributes.h"
#include "keys/CompositeKey.h"
#include "keys/FileKey.h"
#include "keys/PasswordKey.h"
#ifdef WITH_XC_YUBIKEY
#include "keys/YkChallengeResponseKey.h"
#endif
@@ -30,7 +35,7 @@
#include <QFileInfo>
#include <QProcess>
#include <QScopedPointer>
#include <QTextStream>
namespace Utils
{
@@ -91,7 +96,7 @@ namespace Utils
}
QSharedPointer<Database> unlockDatabase(const QString& databaseFilename,
const bool isPasswordProtected,
bool isPasswordProtected,
const QString& keyFilename,
const QString& yubiKeySlot,
bool quiet)
@@ -289,7 +294,7 @@ namespace Utils
QStringList failedProgramNames;
for (auto prog : clipPrograms) {
for (const auto& prog : clipPrograms) {
QScopedPointer<QProcess> clipProcess(new QProcess(nullptr));
// Skip empty parts, otherwise the program may clip the empty string