[Libreoffice-commits] core.git: sc/inc

Noel Grandin noel at peralex.com
Fri Nov 13 01:20:16 PST 2015


 sc/inc/userlist.hxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 6b5e4c1f548f459e2d81963efdd4eb661de1fe89
Author: Noel Grandin <noel at peralex.com>
Date:   Fri Nov 13 11:18:28 2015 +0200

    fix build "error: declaration of size shadows a member of 'this'"
    
    after my commit 2aacf6c2cd82322b953988ff30d3bc997ae76d7b
    "sc: boost::ptr_vector->std::vector"
    
    Change-Id: I7195b91a61405f16ddcc698ce1e8205e6d20c39e

diff --git a/sc/inc/userlist.hxx b/sc/inc/userlist.hxx
index 0ac95e1..1933b84 100644
--- a/sc/inc/userlist.hxx
+++ b/sc/inc/userlist.hxx
@@ -83,7 +83,7 @@ public:
     iterator begin();
     const_iterator begin() const;
     void clear();
-    void reserve(size_t size) { maData.reserve(size); }
+    void reserve(size_t nSize) { maData.reserve(nSize); }
     size_t size() const;
     void push_back(const ScUserListData& r) { maData.push_back(r); }
     void erase(iterator itr);


More information about the Libreoffice-commits mailing list