Hi there,
On Sat, 2012-01-28 at 04:59 -0800, julien2412 wrote:
Hello,
Cppchecks reports this :
core/vcl/win/source/app/salinst.cxx
335 duplicateBranch style Found duplicate branches for if and else.
Nice catch :-) I guess we should bin the outside conditional and have:
if ( pSalData->mpFirstInstance )
{
SalYieldMutex* pYieldMutex = pSalData->mpFirstInstance->mpSalYieldMutex;
bRet = pYieldMutex->mnThreadId == nCurThreadId )
}
PS : I can't test on Windows, so if you want me to do something about this,
be very precise :-)
The above should be fine :-) it's what other platforms do.
Thanks !
Michael.
--
michael.meeks@suse.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.