qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jonat...@apache.org
Subject svn commit: r941499 - /qpid/trunk/qpid/cpp/examples/messaging/map_sender.cpp
Date Wed, 05 May 2010 21:25:34 GMT
Author: jonathan
Date: Wed May  5 21:25:34 2010
New Revision: 941499

URL: http://svn.apache.org/viewvc?rev=941499&view=rev
Log:
Changed floating point from "price" to "percent" - better use of floating point.

Modified:
    qpid/trunk/qpid/cpp/examples/messaging/map_sender.cpp

Modified: qpid/trunk/qpid/cpp/examples/messaging/map_sender.cpp
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/examples/messaging/map_sender.cpp?rev=941499&r1=941498&r2=941499&view=diff
==============================================================================
--- qpid/trunk/qpid/cpp/examples/messaging/map_sender.cpp (original)
+++ qpid/trunk/qpid/cpp/examples/messaging/map_sender.cpp Wed May  5 21:25:34 2010
@@ -47,7 +47,7 @@ int main(int argc, char** argv) {
         Variant::Map content;
         content["id"] = 987654321;
         content["name"] = "Widget";
-        content["price"] = 0.99;//bad use of floating point number, just an example!
+        content["percent"] = 0.99;
         Variant::List colours;
         colours.push_back(Variant("red"));
         colours.push_back(Variant("green"));



---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:commits-subscribe@qpid.apache.org


Mime
View raw message