diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2015-02-03 10:04:58 -0330 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2015-02-03 10:04:58 -0330 |
commit | 0c9eca09e0140dbdc6e954d8d1475cf99c52073d (patch) | |
tree | 674c29c884de6cb8a86f3ccabd2d1d69334133d4 /cpp/demo/Freeze/customEvictor/Client.cpp | |
parent | Fixed compiler warning/error (diff) | |
download | ice-0c9eca09e0140dbdc6e954d8d1475cf99c52073d.tar.bz2 ice-0c9eca09e0140dbdc6e954d8d1475cf99c52073d.tar.xz ice-0c9eca09e0140dbdc6e954d8d1475cf99c52073d.zip |
ICE-5814 build linix/osx demos with high warning levels in git
Diffstat (limited to 'cpp/demo/Freeze/customEvictor/Client.cpp')
-rw-r--r-- | cpp/demo/Freeze/customEvictor/Client.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/cpp/demo/Freeze/customEvictor/Client.cpp b/cpp/demo/Freeze/customEvictor/Client.cpp index 36dd563ffb0..0ad2ea226b9 100644 --- a/cpp/demo/Freeze/customEvictor/Client.cpp +++ b/cpp/demo/Freeze/customEvictor/Client.cpp @@ -49,7 +49,7 @@ public: // // Measures how long it takes to read 'readCount' items at random // - IceUtil::Time start = IceUtil::Time::now(IceUtil::Time::Monotonic); + IceUtil::Time startTime = IceUtil::Time::now(IceUtil::Time::Monotonic); try { @@ -58,15 +58,15 @@ public: int id = rand() % objectCount; ostringstream os; os << "P/N " << id; - string name = os.str(); + string nm = os.str(); Ice::Identity identity; - identity.name = name; + identity.name = nm; ItemPrx item = ItemPrx::uncheckedCast(_anItem->ice_identity(identity)); item->getDescription(); } _requestsPerSecond = - static_cast<int>(readCount / (IceUtil::Time::now(IceUtil::Time::Monotonic) - start).toSecondsDouble()); + static_cast<int>(readCount / (IceUtil::Time::now(IceUtil::Time::Monotonic) - startTime).toSecondsDouble()); } catch(const IceUtil::Exception& e) { @@ -101,7 +101,7 @@ public: // // Measure how long it takes to write 'writeCount' items at random. // - IceUtil::Time start = IceUtil::Time::now(IceUtil::Time::Monotonic); + IceUtil::Time startTime = IceUtil::Time::now(IceUtil::Time::Monotonic); try { @@ -111,16 +111,16 @@ public: ostringstream os; os << "P/N " << id; - string name = os.str(); + string nm = os.str(); Ice::Identity identity; - identity.name = name; + identity.name = nm; ItemPrx item = ItemPrx::uncheckedCast(_anItem->ice_identity(identity)); item->adjustStock(1); } _requestsPerSecond = - static_cast<int>(writeCount / (IceUtil::Time::now(IceUtil::Time::Monotonic) - start).toSecondsDouble()); + static_cast<int>(writeCount / (IceUtil::Time::now(IceUtil::Time::Monotonic) - startTime).toSecondsDouble()); } catch(const IceUtil::Exception& e) { |