summaryrefslogtreecommitdiff
path: root/cpp/demo/Freeze/library/LibraryI.cpp
diff options
context:
space:
mode:
authorBernard Normier <bernard@zeroc.com>2003-06-06 15:25:46 +0000
committerBernard Normier <bernard@zeroc.com>2003-06-06 15:25:46 +0000
commit388366020d5b62c58689af3351531a88bb04dbb8 (patch)
treea5fe6d196e1eadd985b9641137f696a1a0335aab /cpp/demo/Freeze/library/LibraryI.cpp
parentAdded Evictor::saveObject (diff)
downloadice-388366020d5b62c58689af3351531a88bb04dbb8.tar.bz2
ice-388366020d5b62c58689af3351531a88bb04dbb8.tar.xz
ice-388366020d5b62c58689af3351531a88bb04dbb8.zip
Changed the behavior of Freeze::Map::insert and added Freeze::Map::put
Diffstat (limited to 'cpp/demo/Freeze/library/LibraryI.cpp')
-rw-r--r--cpp/demo/Freeze/library/LibraryI.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/demo/Freeze/library/LibraryI.cpp b/cpp/demo/Freeze/library/LibraryI.cpp
index 4e96479e7d7..aff271110e8 100644
--- a/cpp/demo/Freeze/library/LibraryI.cpp
+++ b/cpp/demo/Freeze/library/LibraryI.cpp
@@ -215,7 +215,7 @@ LibraryI::createBook(const ::BookDescription& description, const Ice::Current&)
}
isbnSeq.push_back(description.isbn);
- _authors.insert(StringIsbnSeqDict::value_type(description.authors, isbnSeq));
+ _authors.put(StringIsbnSeqDict::value_type(description.authors, isbnSeq));
return book;
}
@@ -322,7 +322,7 @@ LibraryI::remove(const BookDescription& description)
//
// Otherwise, write back the new record.
//
- _authors.insert(StringIsbnSeqDict::value_type(description.authors, isbnSeq));
+ _authors.put(StringIsbnSeqDict::value_type(description.authors, isbnSeq));
}
//