diff options
author | Gordon Sim <gsim@apache.org> | 2010-03-29 18:15:42 +0000 |
---|---|---|
committer | Gordon Sim <gsim@apache.org> | 2010-03-29 18:15:42 +0000 |
commit | adfea171e68298b9b0ced9fe54c2232b963e077e (patch) | |
tree | cc51faebbf79d6b1ac84360e2ad6526939912563 /cpp/src/tests/qpid_send.cpp | |
parent | c2b13417889ca05c880736e49bba91fb1ba4bd5d (diff) | |
download | qpid-python-adfea171e68298b9b0ced9fe54c2232b963e077e.tar.gz |
QPID-2406: a more explicit solution for durations in the messaging api
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@928855 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/tests/qpid_send.cpp')
-rw-r--r-- | cpp/src/tests/qpid_send.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/src/tests/qpid_send.cpp b/cpp/src/tests/qpid_send.cpp index eabcbdae21..a75d21e0a5 100644 --- a/cpp/src/tests/qpid_send.cpp +++ b/cpp/src/tests/qpid_send.cpp @@ -192,7 +192,7 @@ int main(int argc, char ** argv) Message msg; msg.setDurable(opts.durable); if (opts.ttl) { - msg.setTtl(opts.ttl); + msg.setTtl(Duration(opts.ttl)); } if (!opts.replyto.empty()) msg.setReplyTo(Address(opts.replyto)); if (!opts.userid.empty()) msg.setUserId(opts.userid); |