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.me...@suse.com  <><, Pseudo Engineer, itinerant idiot

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

Reply via email to