Skip to content

Commit 393aef4

Browse files
committed
Style (return is not a function or a constructor).
1 parent 709784c commit 393aef4

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/zmq/frame.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ data_chunk frame::payload() const
9999
const auto data = zmq_msg_data(buffer);
100100

101101
const auto begin = static_cast<uint8_t*>(data);
102-
return{ begin, begin + size };
102+
return { begin, begin + size };
103103
}
104104

105105
// Must be called on the socket thread.

src/zmq/message.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ bool message::dequeue(hash_digest& value)
137137
data_chunk message::dequeue_data()
138138
{
139139
if (queue_.empty())
140-
return{};
140+
return {};
141141

142142
const auto data = queue_.front();
143143
queue_.pop();
@@ -147,7 +147,7 @@ data_chunk message::dequeue_data()
147147
std::string message::dequeue_text()
148148
{
149149
if (queue_.empty())
150-
return{};
150+
return {};
151151

152152
const auto& front = queue_.front();
153153
auto text = std::string(front.begin(), front.end());

src/zmq/poller.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,14 +75,14 @@ identifiers poller::wait(int32_t timeout_milliseconds)
7575
if (signaled < 0)
7676
{
7777
terminated_ = true;
78-
return{};
78+
return {};
7979
}
8080

8181
// No events have been signaled and no failure, so the timer expired.
8282
if (signaled == 0)
8383
{
8484
expired_ = true;
85-
return{};
85+
return {};
8686
}
8787

8888
// At least one event was signaled, but the poll-in set may be empty.

0 commit comments

Comments
 (0)