Skip to content

Commit

Permalink
fix whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
balazsracz committed Dec 29, 2023
1 parent 4bd04c6 commit 46cfb1c
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/utils/GridConnectHub.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -136,11 +136,14 @@ class GCAdapter : public GCAdapterBase
, double_bytes_(double_bytes)
{
const int cnt = config_gridconnect_bridge_max_outgoing_packets();
if (cnt > 1) {
if (cnt > 1)
{
ownedPool_.reset(
new LimitedPool(sizeof(Buffer<CanHubData>), cnt));
pool_ = ownedPool_.get();
} else {
}
else
{
pool_ = mainBufferPool;
}
}
Expand Down Expand Up @@ -213,7 +216,7 @@ class GCAdapter : public GCAdapterBase
/// If we want frame limits, this pool can do that for us.
std::unique_ptr<LimitedPool> ownedPool_;
/// The allocation buffer pool to use for outgoing frames.
Pool* pool_;
Pool *pool_;
/// Destination buffer (characters).
char dbuf_[56];
/// Pipe to send data to.
Expand Down

0 comments on commit 46cfb1c

Please sign in to comment.