On Fri, 2013-09-27 at 14:52 -0700, julien2412 wrote:
Hello,
Cppcheck reported this:
sc/source/core/tool/interpr7.cxx
94 else if(pNodeSet->nodeTab[0]->type ==
XML_ELEMENT_NODE)
95 {
96 xmlNodePtr cur = pNodeSet->nodeTab[0];
97 boost::shared_ptr<xmlChar>
pChar2(xmlNodeGetContent(cur), xmlFree);
98 aResult =
OUString::createFromAscii((char*)pChar2.get());
99 }
100 else
101 {
102 xmlNodePtr cur = pNodeSet->nodeTab[0];
103 boost::shared_ptr<xmlChar>
pChar2(xmlNodeGetContent(cur), xmlFree);
104 aResult =
OUString::createFromAscii((char*)pChar2.get());
105 }
See
http://opengrok.libreoffice.org/xref/core/sc/source/core/tool/interpr7.cxx#87
So I decided to just remove the duplication for now. Markus might want
to have a look at it as the original author.
C.
(and the other issue in svx is fixed now as well as per the earlier
mail).
Context
- Re: cppcheck: duplicate branch for ParaPropertyPanel (svx) + interpr7.cxx (sc) · Caolán McNamara
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.