Rafael Dominguez píše v Út 07. 06. 2011 v 20:36 -0430:
On Tue, Jun 7, 2011 at 8:19 PM, Rafael Dominguez
<venccsralph@gmail.com> wrote:
Also haven't pushed
0002-Replace-List-with-std-vector-XclExpUserBView.calc.patch because I am not
sure about
Why do you initialize the vector with NULL pointers?
Nope, heres a patch fixing those issues
Forgot to remove the initializing the vector changed it for reserve.
I have pushed it as
http://cgit.freedesktop.org/libreoffice/calc/commit/?id=b5feae757d14279216b68ae3a11e483c4841218f
Note that I have removed the game with pView pointer. The operator "new"
should newer return NULL. See also the other mail about
0001-Only-add-non-null-scenes-to-manager.patch
Also note that aViews.reserve is not really needed. The size of the
vector is not defined by "rChangeTrack.GetUserCollection().GetCount()"
but by the number of non-NULL "pStrData". The old "List" worked the same
way. aViews.reserve() might be only useful as a speedup optimization to
avoid memory relocations, see
http://www.cplusplus.com/reference/stl/vector/reserve/
Best Regards,
Petr
Context
- Re: [Libreoffice] [PATCH] Replace List for vector<> in sc (continued)
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.