]> granicus.if.org Git - graphviz/commit
mingle bundle: replace a 'unique_ptr' with a 'vector'
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 16 Jan 2022 22:04:09 +0000 (14:04 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Thu, 20 Jan 2022 01:12:34 +0000 (17:12 -0800)
commit83ead44d45775e4a31d303a735116cf8c3a8373d
treea1ee53239d73bea1610098f206bd82818400da7b
parent38d1e7d79e438aebcaf85d17c7290a741982ccfb
mingle bundle: replace a 'unique_ptr' with a 'vector'

Similar to the prior commit, when the `std::unique_ptr` usage was added here in
176c8a163a951a2b801956ed4a00da05603e3a06, I was incorrectly too focused on
preserving the previous property of this being a heap-allocated array. This is
not necessary, and using a `std::vector` instead allows more flexibility. E.g.
depending on the `std::vector` implementation, it could choose to allocate this
array on the stack instead of the heap.
cmd/mingle/minglemain.cpp