Thank you for your feedback about this Markus.
The problem is, I don't know how to do this, would you have an example? I
read again about copy constructor, copy-swap idiom, C++11 standard, etc. so
a conversion example to follow could be very useful. I tried to find one in
cgit history but didn't find it (or missed it?)
Moreover, I made a search about mnRefCount in OpenGrok, it seems manual ref
has been used more than once. I don't remember in which bug I read this but
it could be a source of problem (I think about crash problems)
So from a conversion example given, I'd be interested to apply the
replacement of the refCount by boost::shared_ptr in some (all if possible)
other places.
What do you think? Would it be useful ? Can the conversion mechanism be
"quite automatically" be applied or each case is "unique"?
The problem isn't just the cppcheck report (even if I appreciate to kill
them :-)), I just wonder if it can help to reduce the number of crash cases.
Julien
--
View this message in context:
http://nabble.documentfoundation.org/Cppcheck-false-positive-in-pptx-text-cxx-tp4030662p4030928.html
Sent from the Dev mailing list archive at Nabble.com.
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.