Skip to content

Commit

Permalink
Fix qhash initializer list
Browse files Browse the repository at this point in the history
Closes #1
  • Loading branch information
Riccardo Ferrazzo committed Nov 6, 2015
1 parent ed44ff8 commit 802baa5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zmqml/zmqsocket.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ void ZMQSocket::setupOptionsTable()
return QVariant(data);
};

options = QHash<SockOption, Option>({
options = QHash<SockOption, Option>({{
{SndHwm, {std::bind(setIntValue, SndHwm, _1), std::bind(getIntValue, SndHwm)}},
{RcvHwm, {std::bind(setIntValue, RcvHwm, _1), std::bind(getIntValue, RcvHwm)}},
{Rate, {std::bind(setIntValue, Rate, _1), std::bind(getIntValue, Rate)}},
Expand Down Expand Up @@ -393,5 +393,5 @@ void ZMQSocket::setupOptionsTable()
{CurveServerKey, {std::bind(setByteArrayValue, CurveServerKey, _1), std::bind(getByteArrayValue, CurveServerKey, 41)}},
{ZapDomain, {std::bind(setByteArrayValue, ZapDomain, _1), std::bind(getByteArrayValue, ZapDomain, 255)}},
#endif
});
}});
}

0 comments on commit 802baa5

Please sign in to comment.