Skip to content

Fix call constructor of 'GpgME::Data' is ambiguous

Julius Künzel requested to merge work/fix-macos into master

This fails to build eg. on macOS with clang.

This is the error it fixes

/Users/gitlab/ws/builds/GZwHuM5x/0/sysadmin/ci-management/macos-arm-clang/build/kde/frameworks/tier3/kwallet/work/kwallet-5.245.0/src/runtime/kwalletd/backend/backendpersisthandler.cpp:547:17: error: call to constructor of 'GpgME::Data' is ambiguous
GpgME::Data decryptedData(dataBuffer.data(), dataBuffer.size(), false);
^             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/gitlab/ws/builds/GZwHuM5x/0/sysadmin/ci-management/macos-arm-clang/include/gpgme++/data.h:58:5: note: candidate constructor
Data(const char *buffer, size_t size, bool copy = true);
^
/Users/gitlab/ws/builds/GZwHuM5x/0/sysadmin/ci-management/macos-arm-clang/include/gpgme++/data.h:60:5: note: candidate constructor
Data(const char *filename, off_t offset, size_t length);
^
1 error generated.
[18/73] Building CXX object src/runtime/kwalletd/backend/CMakeFiles/KF6WalletBackend.dir/kwalletbackend.cc.o

Merge request reports

Loading