Skip to content

Commit

Permalink
fix: cppcheck
Browse files Browse the repository at this point in the history
Signed-off-by: kobayu858 <[email protected]>
  • Loading branch information
kobayu858 committed Dec 25, 2024
1 parent 54372cc commit 67e9e72
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,9 @@ polygon_t random_polygon()

int main()
{
Obstacles obstacles;
std::vector<polygon_t> polygons;

try {
Obstacles obstacles;
std::vector<polygon_t> polygons;
polygons.reserve(100);
for (auto i = 0; i < 100; ++i) {
polygons.push_back(random_polygon());
Expand Down

0 comments on commit 67e9e72

Please sign in to comment.