Skip to content

Commit

Permalink
src/GzRandomObjects.hh: Fix code smell init dataPtr in-class
Browse files Browse the repository at this point in the history
  • Loading branch information
wltjr committed Oct 28, 2024
1 parent d0d5984 commit 5d4a586
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/GzRandomObjects.hh
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ namespace ignition
EventManager &_eventMgr) override;

private:
std::unique_ptr<GzRandomObjectsPrivate> dataPtr;
std::unique_ptr<GzRandomObjectsPrivate> dataPtr =
std::make_unique<GzRandomObjectsPrivate>();
};
}
}
Expand Down

0 comments on commit 5d4a586

Please sign in to comment.