On Sun, 2011-01-30 at 01:11 +0100, Kenneth Venken wrote:
hi,
this removes unread variable pTargetPage
from ./impress/sd/source/core/drawdoc2.cxx
It does, but do we know for a fact that it should be
-pTargetPage = GetSdPage(nPage, PK_STANDARD);
and not
-pTargetPage = GetSdPage(nPage, PK_STANDARD);
+GetSdPage(nPage, PK_STANDARD);
i.e. it might be that GetSdPage has some vital side-effects and that the
call should remain, and only the return value should be discarded.
Anyway reading through it, SdDrawDocument::GetSdPage is defined as a
const method, so it *claims* to have no side-effects, though it calls
into some stuff that creates the page on demand apparently, though
there's already another call in the ::MovePages function being changed
that goes through the same on-demand loader, so yeah, the patch *surely*
is the right one :-)
Thanks for this, now pushed.
C.
Context
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.