Merge pull request #4814

840bf155 build: fix Ubuntu 16.04 (GCC 5.4.0) compilation (xiphon)
This commit is contained in:
Riccardo Spagni 2018-11-07 15:02:56 +02:00
commit 8534f71eed
No known key found for this signature in database
GPG Key ID: 55432DF31CCD4FCD

View File

@ -11069,7 +11069,8 @@ std::string wallet2::export_outputs_to_str() const
std::stringstream oss; std::stringstream oss;
boost::archive::portable_binary_oarchive ar(oss); boost::archive::portable_binary_oarchive ar(oss);
ar << export_outputs(); const auto& outputs = export_outputs();
ar << outputs;
std::string magic(OUTPUT_EXPORT_FILE_MAGIC, strlen(OUTPUT_EXPORT_FILE_MAGIC)); std::string magic(OUTPUT_EXPORT_FILE_MAGIC, strlen(OUTPUT_EXPORT_FILE_MAGIC));
const cryptonote::account_public_address &keys = get_account().get_keys().m_account_address; const cryptonote::account_public_address &keys = get_account().get_keys().m_account_address;