Skip to content

Commit 3db9d79

Browse files
committed
Use operator[] instead of .insert
Signed-off-by: Lakira Ashley <[email protected]>
1 parent 106fceb commit 3db9d79

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

lib/include/prjxray/xilinx/configuration.h

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -487,11 +487,9 @@ Configuration<ArchType>::InitWithPackets(const typename ArchType::Part& part,
487487
// do auto-incrementing block writes.
488488
for (size_t ii = 0; ii < packet.data().size();
489489
ii += ArchType::words_per_frame) {
490-
frames.insert(
491-
{current_frame_address,
492-
packet.data().subspan(
493-
ii,
494-
ArchType::words_per_frame)});
490+
frames[current_frame_address] =
491+
packet.data().subspan(
492+
ii, ArchType::words_per_frame);
495493

496494
auto next_address =
497495
part.GetNextFrameAddress(
@@ -523,9 +521,8 @@ Configuration<ArchType>::InitWithPackets(const typename ArchType::Part& part,
523521
current_frame_address =
524522
frame_address_register;
525523
start_dup_write = false;
526-
frames.insert(
527-
{current_frame_address,
528-
frames[last_write_frame_address]});
524+
frames[current_frame_address] =
525+
frames[last_write_frame_address];
529526
}
530527
} break;
531528
default:

0 commit comments

Comments
 (0)