keepassxc/src/keeshare
Chih-Hsuan Yen 7c6c027d33 Fix building on Mac OS X 10.11 or older
* Add a missing include in src/core/Alloc.cpp

On Mac OS X 10.11 with Xcode 8.2.1, building fails with

/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_security_KeePassXC/KeePassXC-devel/work/keepassxc-f726d7501ff7e8a66ae974719042f23010716595/src/core/Alloc.cpp:44:10: error: no type named 'free' in namespace 'std'
    std::free(ptr);
    ~~~~~^

Per [1], std::free() needs #include <cstdlib>. That file is included
indirectly on newer systems.

* Avoid const Signature object in src/keeshare/ShareExport.cpp

After the above issue is resolved, building fails at

/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_security_KeePassXC/KeePassXC-devel/work/keepassxc-f726d7501ff7e8a66ae974719042f23010716595/src/keeshare/ShareExport.cpp:152:29: error: default initialization of an object of const type 'const Signature' without a user-provided default constructor
            const Signature signer;
                            ^

Apparently this is related to C++ defect 253 [2]. From the code,
creating a Signature is not needed as all methods in Signature are
static, so just call the method.

[1] https://en.cppreference.com/w/cpp/memory/c/free
[2] https://stackoverflow.com/a/47368753
2019-10-24 18:56:33 -04:00
..
group Improve File Dialog 2019-08-30 22:30:30 -04:00
CMakeLists.txt Extract ShareImport and ShareExport 2019-06-19 22:35:12 -04:00
DatabaseSettingsPageKeeShare.cpp Merge branch 'develop' 2018-12-18 22:28:56 -05:00
DatabaseSettingsPageKeeShare.h Merge branch 'develop' 2018-12-18 22:28:56 -05:00
DatabaseSettingsWidgetKeeShare.cpp KeeShare code formatting and spelling correction 2019-01-18 23:22:04 -05:00
DatabaseSettingsWidgetKeeShare.h Merge branch 'develop' 2018-12-18 22:28:56 -05:00
DatabaseSettingsWidgetKeeShare.ui Add sharing of groups between databases 2018-10-01 10:39:37 -04:00
KeeShare.cpp Extract ShareImport and ShareExport 2019-06-19 22:35:12 -04:00
KeeShare.h Extract ShareImport and ShareExport 2019-06-19 22:35:12 -04:00
KeeShareSettings.cpp Fix compilation with GCC 5 (#2990) 2019-04-12 19:49:43 +02:00
KeeShareSettings.h KeeShare code formatting and spelling correction 2019-01-18 23:22:04 -05:00
SettingsPageKeeShare.cpp Add sharing of groups between databases 2018-10-01 10:39:37 -04:00
SettingsPageKeeShare.h Add sharing of groups between databases 2018-10-01 10:39:37 -04:00
SettingsWidgetKeeShare.cpp Improve File Dialog 2019-08-30 22:30:30 -04:00
SettingsWidgetKeeShare.h Changed KeeShareSettings to explicitly ask 2019-01-03 18:22:41 +01:00
SettingsWidgetKeeShare.ui Improve accessibility (#3409) 2019-08-30 20:18:41 -04:00
ShareExport.cpp Fix building on Mac OS X 10.11 or older 2019-10-24 18:56:33 -04:00
ShareExport.h Extract ShareImport and ShareExport 2019-06-19 22:35:12 -04:00
ShareImport.cpp Correct Translation Warnings 2019-10-20 20:39:21 -04:00
ShareImport.h Extract ShareImport and ShareExport 2019-06-19 22:35:12 -04:00
ShareObserver.cpp propagate the results from ShareExport::intoContainer 2019-10-23 22:49:03 -04:00
ShareObserver.h Extract ShareImport and ShareExport 2019-06-19 22:35:12 -04:00
Signature.cpp Add sharing of groups between databases 2018-10-01 10:39:37 -04:00
Signature.h Add sharing of groups between databases 2018-10-01 10:39:37 -04:00