Date: prev next · Thread: first prev next last
2015 Archives by date, by thread · List index


On Tue, Sep 1, 2015 at 11:50 AM, Shreyansh Gandhi <gandhishrey@gmail.com>
wrote:

Hey, I don't understand the reason why the build failed. Can you please
take a look?
http://ci.libreoffice.org/job/lo_gerrit_master/5856/console


Looks like a Jenkins issue. Other builds have failed as well.

Rebase to rebuild again later when Jenkins shows some successful builds.



On Tue, Sep 1, 2015 at 8:06 PM Michael Stahl <mstahl@redhat.com> wrote:

On 01.09.2015 15:34, Shreyansh Gandhi wrote:
I just came across
this:
http://stackoverflow.com/questions/24221955/creating-a-unique-ptr-from-a-pointer
.
Will it be safe to use this method to push_back into m_Selectors?

yes, if it was pushing to a boost::ptr_container before (and we can
assume that that works), then converting it to a unique_ptr only at the
place when it is pushed is doing exactly the same thing.

the only problem to watch out for, if you do it earlier and convert a
variable declaration to std::unique_ptr then std::move into the
container then the variable contains a null pointer now - but if you
convert the bare pointer only inside the push_back call then this
problem is avoided.


_______________________________________________
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice

--
Regards,
Shreyansh Gandhi

_______________________________________________
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice



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.