You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openoffice.apache.org by pa...@apache.org on 2013/08/15 11:24:25 UTC

svn commit: r1514218 - /openoffice/trunk/main/basegfx/source/polygon/b2dpolypolygoncutter.cxx

Author: paveljanik
Date: Thu Aug 15 09:24:25 2013
New Revision: 1514218

URL: http://svn.apache.org/r1514218
Log:
WaE: Initialize boolean variable to false to prevent compiler warning about uninitialized variable.

Modified:
    openoffice/trunk/main/basegfx/source/polygon/b2dpolypolygoncutter.cxx

Modified: openoffice/trunk/main/basegfx/source/polygon/b2dpolypolygoncutter.cxx
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/basegfx/source/polygon/b2dpolypolygoncutter.cxx?rev=1514218&r1=1514217&r2=1514218&view=diff
==============================================================================
--- openoffice/trunk/main/basegfx/source/polygon/b2dpolypolygoncutter.cxx (original)
+++ openoffice/trunk/main/basegfx/source/polygon/b2dpolypolygoncutter.cxx Thu Aug 15 09:24:25 2013
@@ -690,7 +690,7 @@ namespace basegfx
                     {
                         basegfx::B2DPolygon aTemp(aRetval.getB2DPolygon(a));
                         const sal_uInt32 nPointCount(aTemp.count());
-                        bool bChanged;
+                        bool bChanged(false);
 
                         for(sal_uInt32 b(0); b < nPointCount; b++)
                         {



Re: svn commit: r1514218 - /openoffice/trunk/main/basegfx/source/polygon/b2dpolypolygoncutter.cxx

Posted by Oliver-Rainer Wittmann <or...@googlemail.com>.
Hi,

On 15.08.2013 11:24, paveljanik@apache.org wrote:
> Author: paveljanik
> Date: Thu Aug 15 09:24:25 2013
> New Revision: 1514218
>
> URL: http://svn.apache.org/r1514218
> Log:
> WaE: Initialize boolean variable to false to prevent compiler warning about uninitialized variable.
>

kudos to Pavel to find this defect.


Thx and best regards, Oliver.

> Modified:
>      openoffice/trunk/main/basegfx/source/polygon/b2dpolypolygoncutter.cxx
>
> Modified: openoffice/trunk/main/basegfx/source/polygon/b2dpolypolygoncutter.cxx
> URL: http://svn.apache.org/viewvc/openoffice/trunk/main/basegfx/source/polygon/b2dpolypolygoncutter.cxx?rev=1514218&r1=1514217&r2=1514218&view=diff
> ==============================================================================
> --- openoffice/trunk/main/basegfx/source/polygon/b2dpolypolygoncutter.cxx (original)
> +++ openoffice/trunk/main/basegfx/source/polygon/b2dpolypolygoncutter.cxx Thu Aug 15 09:24:25 2013
> @@ -690,7 +690,7 @@ namespace basegfx
>                       {
>                           basegfx::B2DPolygon aTemp(aRetval.getB2DPolygon(a));
>                           const sal_uInt32 nPointCount(aTemp.count());
> -                        bool bChanged;
> +                        bool bChanged(false);
>
>                           for(sal_uInt32 b(0); b < nPointCount; b++)
>                           {
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@openoffice.apache.org
For additional commands, e-mail: dev-help@openoffice.apache.org