diff options
Diffstat (limited to 'cpp/demo/Freeze/library/LibraryI.cpp')
-rw-r--r-- | cpp/demo/Freeze/library/LibraryI.cpp | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/cpp/demo/Freeze/library/LibraryI.cpp b/cpp/demo/Freeze/library/LibraryI.cpp index 8a950d3b95c..5ae10812f9c 100644 --- a/cpp/demo/Freeze/library/LibraryI.cpp +++ b/cpp/demo/Freeze/library/LibraryI.cpp @@ -107,9 +107,7 @@ BookI::returnBook(const Ice::Current&) rentalCustomerName.clear();; } -// Needs to be extern for the Sun C++ 5.4 compiler -// -extern Ice::Identity +Ice::Identity createBookIdentity(const string& isbn) { // @@ -157,17 +155,7 @@ LibraryI::createBook(const Demo::BookDescription& description, const Ice::Curren { IceUtil::Mutex::Lock lock(*this); -#if defined(__SUNPRO_CC) - // - // Strange CC bug (only when optimizing and raising BookExistsException) - // - BookPrx book; - { - book = IsbnToBook(c.adapter)(description.isbn); - } -#else BookPrx book = IsbnToBook(c.adapter)(description.isbn); -#endif try { book->ice_ping(); |