[Libreoffice-commits] core.git: sc/inc
Eike Rathke
erack at redhat.com
Fri Dec 8 15:02:59 UTC 2017
sc/inc/dbdata.hxx | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
New commits:
commit f161cdc979587488df83e63002bee7ee15152d42
Author: Eike Rathke <erack at redhat.com>
Date: Fri Dec 8 15:59:53 2017 +0100
Adapt description to reality
Change-Id: I24133fb6c52bd7500037364120cb11d1b1f099c2
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;
More information about the Libreoffice-commits
mailing list