summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2017-12-08 15:59:53 +0100
committerEike Rathke <erack@redhat.com>2017-12-08 16:00:51 +0100
commitf161cdc979587488df83e63002bee7ee15152d42 (patch)
tree2171e516d5ac6bf5c095844faa7b75463dabe6da /sc
parent660116605d7f8cf15b7ecdfcb62b0a42d3ece78b (diff)
Adapt description to reality
Change-Id: I24133fb6c52bd7500037364120cb11d1b1f099c2
Diffstat (limited to 'sc')
-rw-r--r--sc/inc/dbdata.hxx7
1 files changed, 6 insertions, 1 deletions
diff --git a/sc/inc/dbdata.hxx b/sc/inc/dbdata.hxx
index 79fe9e82d428..2fea51e1a74b 100644
--- a/sc/inc/dbdata.hxx
+++ b/sc/inc/dbdata.hxx
@@ -256,8 +256,13 @@ public:
ScDBData* findByIndex(sal_uInt16 nIndex);
ScDBData* findByUpperName(const OUString& rName);
iterator findByUpperName2(const OUString& rName);
- // Takes ownership of p iff it returns true:
+
+ /** Takes ownership of p and attempts to insert it into the collection.
+ Deletes p if it could not be inserted, i.e. duplicate name.
+ @return <TRUE/> if inserted, else <FALSE/>.
+ */
SAL_WARN_UNUSED_RESULT bool insert(ScDBData* p);
+
void erase(const iterator& itr);
bool empty() const;
size_t size() const;