Code formatting
This commit is contained in:
@@ -78,7 +78,7 @@ void operator delete[](void* ptr) noexcept
|
||||
* Custom insecure delete operator that does not zero out memory before
|
||||
* freeing a buffer. Can be used for better performance.
|
||||
*/
|
||||
void operator delete(void* ptr, bool) noexcept
|
||||
void operator delete(void* ptr, bool)noexcept
|
||||
{
|
||||
std::free(ptr);
|
||||
}
|
||||
|
||||
@@ -257,7 +257,7 @@ namespace Bootstrap
|
||||
nullptr, // do not change owner or group
|
||||
pACL, // DACL specified
|
||||
nullptr // do not change SACL
|
||||
);
|
||||
);
|
||||
|
||||
Cleanup:
|
||||
|
||||
|
||||
@@ -625,9 +625,9 @@ Merger::ChangeList Merger::mergeMetadata(const MergeContext& context)
|
||||
// Merge Custom Data if source is newer
|
||||
const auto targetCustomDataModificationTime = sourceMetadata->customData()->getLastModified();
|
||||
const auto sourceCustomDataModificationTime = targetMetadata->customData()->getLastModified();
|
||||
if (!targetMetadata->customData()->contains(CustomData::LastModified) ||
|
||||
(targetCustomDataModificationTime.isValid() && sourceCustomDataModificationTime.isValid() &&
|
||||
targetCustomDataModificationTime > sourceCustomDataModificationTime)) {
|
||||
if (!targetMetadata->customData()->contains(CustomData::LastModified)
|
||||
|| (targetCustomDataModificationTime.isValid() && sourceCustomDataModificationTime.isValid()
|
||||
&& targetCustomDataModificationTime > sourceCustomDataModificationTime)) {
|
||||
const auto sourceCustomDataKeys = sourceMetadata->customData()->keys();
|
||||
const auto targetCustomDataKeys = targetMetadata->customData()->keys();
|
||||
|
||||
|
||||
@@ -23,6 +23,7 @@
|
||||
#include "core/Config.h"
|
||||
#include "core/Translator.h"
|
||||
|
||||
#include "git-info.h"
|
||||
#include <QCoreApplication>
|
||||
#include <QElapsedTimer>
|
||||
#include <QIODevice>
|
||||
@@ -33,7 +34,6 @@
|
||||
#include <QSysInfo>
|
||||
#include <QUuid>
|
||||
#include <cctype>
|
||||
#include "git-info.h"
|
||||
|
||||
#ifdef Q_OS_WIN
|
||||
#include <windows.h> // for Sleep()
|
||||
@@ -75,7 +75,6 @@ namespace Tools
|
||||
#endif
|
||||
debugInfo.append("\n");
|
||||
|
||||
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(5, 4, 0)
|
||||
debugInfo.append(QObject::tr("Operating system: %1\nCPU architecture: %2\nKernel: %3 %4")
|
||||
.arg(QSysInfo::prettyProductName(),
|
||||
|
||||
@@ -18,9 +18,9 @@
|
||||
#ifndef KEEPASSX_TRANSLATOR_H
|
||||
#define KEEPASSX_TRANSLATOR_H
|
||||
|
||||
#include <QLocale>
|
||||
#include <QPair>
|
||||
#include <QString>
|
||||
#include <QLocale>
|
||||
|
||||
class Translator
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user