@@ -2041,10 +2041,11 @@ DEFINE_HOOK_FUNCTION(
2041
2041
: const_cast <ripple::STTx&>(applyCtx.tx ).downcast <ripple::STObject>()
2042
2042
);
2043
2043
2044
- hookCtx.slot .emplace ( std::pair<uint32_t , hook::SlotEntry> { slot_into, hook::SlotEntry {
2045
- .storage = st_tx,
2046
- .entry = 0
2047
- }});
2044
+ hookCtx.slot [slot_into] = hook::SlotEntry {
2045
+ .storage = st_tx,
2046
+ .entry = 0
2047
+ };
2048
+
2048
2049
hookCtx.slot [slot_into].entry = &(*hookCtx.slot [slot_into].storage );
2049
2050
2050
2051
return slot_into;
@@ -5531,10 +5532,11 @@ DEFINE_HOOK_FUNCTION(
5531
5532
return NO_FREE_SLOTS;
5532
5533
}
5533
5534
5534
- hookCtx.slot .emplace ( std::pair<uint32_t , hook::SlotEntry> { slot_into, hook::SlotEntry {
5535
- .storage = hookCtx.result .provisionalMeta ,
5536
- .entry = 0
5537
- }});
5535
+ hookCtx.slot [slot_into] = hook::SlotEntry {
5536
+ .storage = hookCtx.result .provisionalMeta ,
5537
+ .entry = 0
5538
+ };
5539
+
5538
5540
hookCtx.slot [slot_into].entry = &(*hookCtx.slot [slot_into].storage );
5539
5541
5540
5542
return slot_into;
@@ -5590,17 +5592,17 @@ DEFINE_HOOK_FUNCTION(
5590
5592
if (!tx || !meta)
5591
5593
return INVALID_TXN;
5592
5594
5593
- hookCtx.slot . emplace ( std::pair< uint32_t , hook::SlotEntry> { slot_into_tx, hook::SlotEntry {
5595
+ hookCtx.slot [ slot_into_tx] = hook::SlotEntry {
5594
5596
.storage = std::move (tx),
5595
5597
.entry = 0
5596
- }}) ;
5598
+ };
5597
5599
5598
5600
hookCtx.slot [slot_into_tx].entry = &(*hookCtx.slot [slot_into_tx].storage );
5599
5601
5600
- hookCtx.slot . emplace ( std::pair< uint32_t , hook::SlotEntry> { slot_into_meta, hook::SlotEntry {
5602
+ hookCtx.slot [ slot_into_meta] = hook::SlotEntry {
5601
5603
.storage = std::move (meta),
5602
5604
.entry = 0
5603
- }}) ;
5605
+ };
5604
5606
5605
5607
hookCtx.slot [slot_into_meta].entry = &(*hookCtx.slot [slot_into_meta].storage );
5606
5608
0 commit comments