@@ -1215,19 +1215,18 @@ rapidjson::Value PyMoneroWalletRelayTxParams::to_rapidjson_val(rapidjson::Docume
12151215 return root;
12161216}
12171217
1218- PyMoneroSweepParams::PyMoneroSweepParams (const monero_tx_config& config) {
1219- m_address = config.m_address ;
1220- m_account_index = config.m_account_index ;
1221- m_subaddr_indices = config.m_subaddress_indices ;
1222- m_key_image = config.m_key_image ;
1223- m_relay = config.m_relay ;
1224- m_priority = config.m_priority ;
1225- m_payment_id = config.m_payment_id ;
1226- m_below_amount = config.m_below_amount ;
1227- m_get_tx_key = true ;
1228- m_get_tx_hex = true ;
1229- m_get_tx_metadata = true ;
1230- }
1218+ PyMoneroSweepParams::PyMoneroSweepParams (const monero_tx_config& config):
1219+ m_address(config.m_address),
1220+ m_account_index(config.m_account_index),
1221+ m_subaddr_indices(config.m_subaddress_indices),
1222+ m_key_image(config.m_key_image),
1223+ m_relay(config.m_relay),
1224+ m_priority(config.m_priority),
1225+ m_payment_id(config.m_payment_id),
1226+ m_below_amount(config.m_below_amount),
1227+ m_get_tx_key(true ),
1228+ m_get_tx_hex(true ),
1229+ m_get_tx_metadata(true ) { }
12311230
12321231rapidjson::Value PyMoneroSweepParams::to_rapidjson_val (rapidjson::Document::AllocatorType& allocator) const {
12331232 rapidjson::Value root (rapidjson::kObjectType );
@@ -1301,37 +1300,30 @@ rapidjson::Value PyMoneroImportExportKeyImagesParams::to_rapidjson_val(rapidjson
13011300 return root;
13021301}
13031302
1304- PyMoneroCreateOpenWalletParams::PyMoneroCreateOpenWalletParams (const boost::optional<std::string>& filename, const boost::optional<std::string> &password) {
1305- m_filename = filename;
1306- m_password = password;
1307- }
1303+ PyMoneroCreateOpenWalletParams::PyMoneroCreateOpenWalletParams (const boost::optional<std::string>& filename, const boost::optional<std::string> &password):
1304+ m_filename(filename), m_password(password) { }
13081305
1309- PyMoneroCreateOpenWalletParams::PyMoneroCreateOpenWalletParams (const boost::optional<std::string>& filename, const boost::optional<std::string> &password, const boost::optional<std::string> &language) {
1310- m_filename = filename;
1311- m_password = password;
1312- m_language = language;
1313- }
1306+ PyMoneroCreateOpenWalletParams::PyMoneroCreateOpenWalletParams (const boost::optional<std::string>& filename, const boost::optional<std::string> &password, const boost::optional<std::string> &language):
1307+ m_filename(filename), m_password(password), m_language(language) { }
13141308
1315- PyMoneroCreateOpenWalletParams::PyMoneroCreateOpenWalletParams (const boost::optional<std::string>& filename, const boost::optional<std::string> &password, const boost::optional<std::string> &seed, const boost::optional<std::string> &seed_offset, const boost::optional<uint64_t > &restore_height, const boost::optional<std::string> &language, const boost::optional<bool > &autosave_current, const boost::optional<bool > &enable_multisig_experimental) {
1316- m_filename = filename;
1317- m_password = password;
1318- m_seed = seed;
1319- m_seed_offset = seed_offset;
1320- m_restore_height = restore_height;
1321- m_language = language;
1322- m_autosave_current = autosave_current;
1323- m_enable_multisig_experimental = enable_multisig_experimental;
1324- }
1309+ PyMoneroCreateOpenWalletParams::PyMoneroCreateOpenWalletParams (const boost::optional<std::string>& filename, const boost::optional<std::string> &password, const boost::optional<std::string> &seed, const boost::optional<std::string> &seed_offset, const boost::optional<uint64_t > &restore_height, const boost::optional<std::string> &language, const boost::optional<bool > &autosave_current, const boost::optional<bool > &enable_multisig_experimental):
1310+ m_filename(filename),
1311+ m_password(password),
1312+ m_seed(seed),
1313+ m_seed_offset(seed_offset),
1314+ m_restore_height(restore_height),
1315+ m_language(language),
1316+ m_autosave_current(autosave_current),
1317+ m_enable_multisig_experimental(enable_multisig_experimental) { }
13251318
1326- PyMoneroCreateOpenWalletParams::PyMoneroCreateOpenWalletParams (const boost::optional<std::string>& filename, const boost::optional<std::string> &password, const boost::optional<std::string> &address, const boost::optional<std::string> &view_key, const boost::optional<std::string> &spend_key, const boost::optional<uint64_t > &restore_height, const boost::optional<bool > &autosave_current) {
1327- m_filename = filename;
1328- m_password = password;
1329- m_address = address;
1330- m_view_key = view_key;
1331- m_spend_key = spend_key;
1332- m_restore_height = restore_height;
1333- m_autosave_current = autosave_current;
1334- }
1319+ PyMoneroCreateOpenWalletParams::PyMoneroCreateOpenWalletParams (const boost::optional<std::string>& filename, const boost::optional<std::string> &password, const boost::optional<std::string> &address, const boost::optional<std::string> &view_key, const boost::optional<std::string> &spend_key, const boost::optional<uint64_t > &restore_height, const boost::optional<bool > &autosave_current):
1320+ m_filename(filename),
1321+ m_password(password),
1322+ m_address(address),
1323+ m_view_key(view_key),
1324+ m_spend_key(spend_key),
1325+ m_restore_height(restore_height),
1326+ m_autosave_current(autosave_current) { }
13351327
13361328rapidjson::Value PyMoneroCreateOpenWalletParams::to_rapidjson_val (rapidjson::Document::AllocatorType& allocator) const {
13371329 rapidjson::Value root (rapidjson::kObjectType );
@@ -1351,34 +1343,20 @@ rapidjson::Value PyMoneroCreateOpenWalletParams::to_rapidjson_val(rapidjson::Doc
13511343 return root;
13521344}
13531345
1354- PyMoneroReserveProofParams::PyMoneroReserveProofParams (const std::string &message, bool all) {
1355- m_all = all;
1356- m_message = message;
1357- }
1346+ PyMoneroReserveProofParams::PyMoneroReserveProofParams (const std::string &message, bool all):
1347+ m_all(all), m_message(message) { }
13581348
1359- PyMoneroReserveProofParams::PyMoneroReserveProofParams (const std::string &address, const std::string &message, const std::string &signature) {
1360- m_address = address;
1361- m_message = message;
1362- m_signature = signature;
1363- }
1349+ PyMoneroReserveProofParams::PyMoneroReserveProofParams (const std::string &address, const std::string &message, const std::string &signature):
1350+ m_address(address), m_message(message), m_signature(signature) { }
13641351
1365- PyMoneroReserveProofParams::PyMoneroReserveProofParams (const std::string &tx_hash, const std::string &address, const std::string &message, const std::string &signature) {
1366- m_tx_hash = tx_hash;
1367- m_address = address;
1368- m_message = message;
1369- m_signature = signature;
1370- }
1352+ PyMoneroReserveProofParams::PyMoneroReserveProofParams (const std::string &tx_hash, const std::string &address, const std::string &message, const std::string &signature):
1353+ m_tx_hash(tx_hash), m_address(address), m_message(message), m_signature(signature) { }
13711354
1372- PyMoneroReserveProofParams::PyMoneroReserveProofParams (const std::string &tx_hash, const std::string &message) {
1373- m_tx_hash = tx_hash;
1374- m_message = message;
1375- }
1355+ PyMoneroReserveProofParams::PyMoneroReserveProofParams (const std::string &tx_hash, const std::string &message):
1356+ m_tx_hash(tx_hash), m_message(message) { }
13761357
1377- PyMoneroReserveProofParams::PyMoneroReserveProofParams (uint32_t account_index, uint64_t amount, const std::string &message) {
1378- m_account_index = account_index;
1379- m_amount = amount;
1380- m_message = message;
1381- }
1358+ PyMoneroReserveProofParams::PyMoneroReserveProofParams (uint32_t account_index, uint64_t amount, const std::string &message):
1359+ m_account_index(account_index), m_amount(amount), m_message(message) { }
13821360
13831361rapidjson::Value PyMoneroReserveProofParams::to_rapidjson_val (rapidjson::Document::AllocatorType& allocator) const {
13841362 rapidjson::Value root (rapidjson::kObjectType );
0 commit comments