keepassxc/src
tenzap dc7ad6c1b7
Fix syntax issue & add a missing header (#7160)
* Fix syntax to prevent compilation issue

Fix build failure with AppleClang 7 & 8.

Error was:
src/core/CustomData.cpp:30:41: error: default initialization of an object of const type 'const CustomData::CustomDataItem' without a user-provided default constructor
static const CustomData::CustomDataItem NULL_ITEM;
                                        ^
                                                 {}
src/core/Metadata.cpp:32:39: error: default initialization of an object of const type 'const Metadata::CustomIconData' without a user-provided default constructor
static const Metadata::CustomIconData NULL_ICON;
                                      ^

src/core/Metadata.cpp:32:48: note: add an explicit initializer to initialize 'NULL_ICON'
static const Metadata::CustomIconData NULL_ICON;
                                               ^
                                               {}

* Add missing QUuid header

Fixes this compilation issue with LLVM clang 9, possibly also due to an old QT5

tests/TestTools.cpp:96:39: error: incomplete type 'QUuid' named in nested name specifier
    auto validUuid = Tools::uuidToHex(QUuid::createUuid());
                                      ^~~~~~~
/opt/local/libexec/qt5/lib/QtCore.framework/Headers/qmetatype.h:1887:1: note: forward declaration of 'QUuid'
QT_FOR_EACH_STATIC_CORE_CLASS(QT_FORWARD_DECLARE_STATIC_TYPES_ITER)
^
/opt/local/libexec/qt5/lib/QtCore.framework/Headers/qmetatype.h:108:18: note: expanded from macro 'QT_FOR_EACH_STATIC_CORE_CLASS'
    F(QUuid, 30, QUuid) \
                 ^
tests/TestTools.cpp:101:40: error: incomplete type 'QUuid' named in nested name specifier
    auto nonHexUuid = Tools::uuidToHex(QUuid::createUuid()).replace(0, 1, 'p');
                                       ^~~~~~~
/opt/local/libexec/qt5/lib/QtCore.framework/Headers/qmetatype.h:1887:1: note: forward declaration of 'QUuid'
QT_FOR_EACH_STATIC_CORE_CLASS(QT_FORWARD_DECLARE_STATIC_TYPES_ITER)
^
/opt/local/libexec/qt5/lib/QtCore.framework/Headers/qmetatype.h:108:18: note: expanded from macro 'QT_FOR_EACH_STATIC_CORE_CLASS'
    F(QUuid, 30, QUuid) \
                 ^
2021-11-24 22:36:31 -05:00
..
autotype Removing QWidget dependency from src/core. 2021-11-12 07:41:30 -05:00
browser Add Microsoft Edge support for Linux (#7100) 2021-11-04 23:02:02 -04:00
cli Removing QWidget dependency from src/core. 2021-11-12 07:41:30 -05:00
core Fix syntax issue & add a missing header (#7160) 2021-11-24 22:36:31 -05:00
crypto Optimize includes across code base 2021-07-13 22:08:33 -04:00
fdosecrets Removing QWidget dependency from src/core. 2021-11-12 07:41:30 -05:00
format Correctly set KDBX envelope version 2021-11-22 12:58:04 +01:00
gui Fix compilation on macOS when clang < 9 or Qt < 5.12 (#7117) 2021-11-24 22:35:38 -05:00
keeshare Removing QWidget dependency from src/core. 2021-11-12 07:41:30 -05:00
keys Fix building on macOS due to PCSC 2021-10-23 17:07:29 -04:00
proxy Add support for Microsoft Visual Studio buildchain 2021-09-19 17:16:45 -04:00
qrcode Removing QWidget dependency from src/core. 2021-11-12 07:41:30 -05:00
sshagent SSH Agent: Add support for OpenSSH 8.2 FIDO/U2F keys 2021-10-01 16:25:14 -04:00
streams Optimize includes across code base 2021-07-13 22:08:33 -04:00
thirdparty Improve Yubikey USB API 2021-09-05 09:11:04 -04:00
totp Optimize includes across code base 2021-07-13 22:08:33 -04:00
touchid Fix compilation on macOS when clang < 9 or Qt < 5.12 (#7117) 2021-11-24 22:35:38 -05:00
updatecheck Optimize includes across code base 2021-07-13 22:08:33 -04:00
zxcvbn Add support for Microsoft Visual Studio buildchain 2021-09-19 17:16:45 -04:00
CMakeLists.txt Add sorting of HTML export 2021-11-24 00:12:13 -05:00
config-keepassx.h.cmake Add Freedesktop.org Secret Storage Spec Server Side API (Fix #1403) 2019-05-12 12:35:42 -04:00
git-info.h.cmake Cleanup CMakeFiles prior to release 2019-01-30 15:03:03 -05:00
main.cpp Fix unlocking multiple databases with pw-stdin when input is a pipe 2021-09-28 07:05:50 -04:00