diff options
author | Michi Henning <michi@zeroc.com> | 2002-07-25 23:09:48 +0000 |
---|---|---|
committer | Michi Henning <michi@zeroc.com> | 2002-07-25 23:09:48 +0000 |
commit | 997c78b8c2911a3787d9ca9b4b10e587cb8cbb2d (patch) | |
tree | 267560499341128d631b40e1caff8e9435b55552 /cpp/demo/Freeze/library/LibraryI.cpp | |
parent | Added generation of Yellow.Query in service configuration. (diff) | |
download | ice-997c78b8c2911a3787d9ca9b4b10e587cb8cbb2d.tar.bz2 ice-997c78b8c2911a3787d9ca9b4b10e587cb8cbb2d.tar.xz ice-997c78b8c2911a3787d9ca9b4b10e587cb8cbb2d.zip |
Changed Slice parser to disallow leading underscore for identifiers.
Changed Slice parser to reject identifiers beginning with "Ice", unless
the --ice option is used. Changed Slice parser to disallow identifiers
that have a trailing "Operations", "Holder", "Helper", "Prx", or "Ptr",
to avoid clashes with language mappings. Fixed tests and remaining code
base to work correctly with the changed rules.
Diffstat (limited to 'cpp/demo/Freeze/library/LibraryI.cpp')
-rw-r--r-- | cpp/demo/Freeze/library/LibraryI.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/cpp/demo/Freeze/library/LibraryI.cpp b/cpp/demo/Freeze/library/LibraryI.cpp index cdf84bc827c..298ed23c374 100644 --- a/cpp/demo/Freeze/library/LibraryI.cpp +++ b/cpp/demo/Freeze/library/LibraryI.cpp @@ -29,7 +29,7 @@ BookI::destroy(const Ice::Current&) try { - _library->remove(_description); + _library->remove(description); } catch(const Freeze::DBNotFoundException&) { @@ -49,7 +49,7 @@ BookI::destroy(const Ice::Current&) BookI::getBookDescription(const Ice::Current&) { // Immutable - return _description; + return description; } ::std::string @@ -57,11 +57,11 @@ BookI::getRenterName(const Ice::Current&) { IceUtil::RWRecMutex::RLock sync(*this); - if(_rentalCustomerName.empty()) + if(rentalCustomerName.empty()) { throw BookNotRentedException(); } - return _rentalCustomerName; + return rentalCustomerName; } void @@ -69,11 +69,11 @@ BookI::rentBook(const ::std::string& name, const Ice::Current&) { IceUtil::RWRecMutex::WLock sync(*this); - if(!_rentalCustomerName.empty()) + if(!rentalCustomerName.empty()) { throw BookRentedException(); } - _rentalCustomerName = name; + rentalCustomerName = name; } void @@ -81,11 +81,11 @@ BookI::returnBook(const Ice::Current&) { IceUtil::RWRecMutex::WLock sync(*this); - if(_rentalCustomerName.empty()) + if(rentalCustomerName.empty()) { throw BookNotRentedException(); } - _rentalCustomerName.clear();; + rentalCustomerName.clear();; } static Ice::Identity @@ -156,7 +156,7 @@ LibraryI::createBook(const ::BookDescription& description, const Ice::Current&) } BookPtr bookI = new BookI(this); - bookI->_description = description; + bookI->description = description; // // Create a new Ice Object in the evictor, using the new identity |