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


Hi Bjoern,

On 07/03/17 11:58, Bjoern Michaelsen wrote:
so while poking around for tdf#99352, I created a local branch where most
contructions of VclPtr<> from a raw pointer have been replaced with an explicit
construction of a VclPtr<>. I havent used anything fancy (clang rewriter), just
some vim macros. I didnt catch all, but the majority of them I guess.

        Ok ? =) sounds sensible to me. Ultimately - I'd love to see all of our
OutputDevice * sub-types replaced with VclPtr<>s everywhere.

Question: Do we want that on master?

        Good question - the code looks a bit uglier ... ;-) ultimately my hope
would be that we would have not:

-    mpPage = pPage;
+    mpPage = VclPtr<TabPage>(pPage); 

        But: mpPage = pPage - and pPage is defined as a VclPtr ;-) so - I
wonder if this is the right way to go if we want to re-write it back
again ultimately ?

        Would it be better to have a big easy-hack to cleanup all naked VclPtr
derived pointer types around the place ? initially we did just members
for lifecycle reasons - but it would make sense to do it wider.

        Let me CC Noel - who is really the expert here I think =)

        HTH,

                Michael..

-- 
michael.meeks@collabora.com <><, Pseudo Engineer, itinerant idiot

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.