summaryrefslogtreecommitdiff
path: root/cpp/demo/Freeze/library/LibraryI.cpp
diff options
context:
space:
mode:
authorDwayne Boone <dwayne@zeroc.com>2015-02-03 10:04:58 -0330
committerDwayne Boone <dwayne@zeroc.com>2015-02-03 10:04:58 -0330
commit0c9eca09e0140dbdc6e954d8d1475cf99c52073d (patch)
tree674c29c884de6cb8a86f3ccabd2d1d69334133d4 /cpp/demo/Freeze/library/LibraryI.cpp
parentFixed compiler warning/error (diff)
downloadice-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/library/LibraryI.cpp')
-rw-r--r--cpp/demo/Freeze/library/LibraryI.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/cpp/demo/Freeze/library/LibraryI.cpp b/cpp/demo/Freeze/library/LibraryI.cpp
index dba787134f5..33309475062 100644
--- a/cpp/demo/Freeze/library/LibraryI.cpp
+++ b/cpp/demo/Freeze/library/LibraryI.cpp
@@ -21,7 +21,7 @@ BookI::BookI(const LibraryIPtr& library) :
void
BookI::destroy(const Ice::Current&)
{
- IceUtil::Mutex::Lock lock(*this);
+ IceUtil::Mutex::Lock lck(*this);
if(_destroyed)
{
throw Ice::ObjectNotExistException(__FILE__, __LINE__);
@@ -43,7 +43,7 @@ BookI::destroy(const Ice::Current&)
Demo::BookDescription
BookI::getBookDescription(const Ice::Current&) const
{
- IceUtil::Mutex::Lock lock(*this);
+ IceUtil::Mutex::Lock lck(*this);
if(_destroyed)
{
@@ -59,7 +59,7 @@ BookI::getBookDescription(const Ice::Current&) const
string
BookI::getRenterName(const Ice::Current&) const
{
- IceUtil::Mutex::Lock lock(*this);
+ IceUtil::Mutex::Lock lck(*this);
if(_destroyed)
{
@@ -76,7 +76,7 @@ BookI::getRenterName(const Ice::Current&) const
void
BookI::rentBook(const string& name, const Ice::Current&)
{
- IceUtil::Mutex::Lock lock(*this);
+ IceUtil::Mutex::Lock lck(*this);
if(_destroyed)
{
@@ -93,7 +93,7 @@ BookI::rentBook(const string& name, const Ice::Current&)
void
BookI::returnBook(const Ice::Current&)
{
- IceUtil::Mutex::Lock lock(*this);
+ IceUtil::Mutex::Lock lck(*this);
if(_destroyed)
{
@@ -156,7 +156,7 @@ LibraryI::LibraryI(const Ice::CommunicatorPtr& communicator,
Demo::BookPrx
LibraryI::createBook(const Demo::BookDescription& description, const Ice::Current& c)
{
- IceUtil::Mutex::Lock lock(*this);
+ IceUtil::Mutex::Lock lck(*this);
BookPrx book = IsbnToBook(c.adapter)(description.isbn);
try
@@ -231,7 +231,7 @@ LibraryI::findByIsbn(const string& isbn, const Ice::Current& c) const
Demo::BookPrxSeq
LibraryI::findByAuthors(const string& authors, const Ice::Current& c) const
{
- IceUtil::Mutex::Lock lock(*this);
+ IceUtil::Mutex::Lock lck(*this);
//
// Lookup all books that match the given authors, and return them
@@ -268,7 +268,7 @@ LibraryI::shutdown(const Ice::Current& current)
void
LibraryI::remove(const BookDescription& description)
{
- IceUtil::Mutex::Lock lock(*this);
+ IceUtil::Mutex::Lock lck(*this);
//
// Note: no need to catch and retry on deadlock since all access to