summaryrefslogtreecommitdiff
path: root/sc/inc
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2017-02-06 20:35:51 +0100
committerTomaž Vajngerl <quikee@gmail.com>2017-02-12 09:13:19 +0000
commitd4c09a4e3737c1355c666299d8a3f3f30dc659dd (patch)
treef3b0bcc6b4d425bc2a5fb2fb5a239659e529a8b9 /sc/inc
parentaa7e1415abdcfc87307547978f0d63b80e502f21 (diff)
sc: simplify GetByName, FreeTable methods of DPCollection + test
Simplify DPCollection GetByName and FreeTable by using c++11 features. Change GetByName to return non-const ScDPObject as this is more useful (as operator[] does that already anyway). Change-Id: Ia502c615acc5cb7fdc51acea9b428d04e1c9a40f Reviewed-on: https://gerrit.libreoffice.org/34002 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'sc/inc')
-rw-r--r--sc/inc/dpobject.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/inc/dpobject.hxx b/sc/inc/dpobject.hxx
index 2f144c5c7786..d8c20f10f5f8 100644
--- a/sc/inc/dpobject.hxx
+++ b/sc/inc/dpobject.hxx
@@ -371,7 +371,7 @@ public:
SC_DLLPUBLIC ScDPObject& operator[](size_t nIndex);
SC_DLLPUBLIC const ScDPObject& operator[](size_t nIndex) const;
- const ScDPObject* GetByName(const OUString& rName) const;
+ ScDPObject* GetByName(const OUString& rName) const;
void DeleteOnTab( SCTAB nTab );
void UpdateReference( UpdateRefMode eUpdateRefMode,