https://issues.apache.org/ooo/show_bug.cgi?id=120106

Ariel Constenla-Haile <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #13 from Ariel Constenla-Haile <[email protected]> ---
(In reply to comment #10)
> I have one question about the extended path in R1355342.
> In function "sw::Frames SwPosFlyFrmsToFrames(const SwPosFlyFrms &rFlys)",
> the name of iterator in the loop is "aPos", which is the same as the one in
> "else" branch. It will make developer confused. 

This issues a warning on Linux:

/home/buildslave20/slave20/openoffice-linux32-nightly/build/main/sw/source/filter/ww8/writerhelper.cxx:
In function 'sw::Frames {anonymous}::SwPosFlyFrmsToFrames(const
SwPosFlyFrms&)':
/home/buildslave20/slave20/openoffice-linux32-nightly/build/main/sw/source/filter/ww8/writerhelper.cxx:154:32:
warning: declaration of 'aPos' shadows a previous local [-Wshadow]
/home/buildslave20/slave20/openoffice-linux32-nightly/build/main/sw/source/filter/ww8/writerhelper.cxx:144:42:
warning: shadowed declaration is here [-Wshadow]

And the commit breaks the build:

/home/buildslave20/slave20/openoffice-linux32-nightly/build/main/sw/source/filter/ww8/writerhelper.cxx:154:35:
error: no match for 'operator*' in '*aPos'
/home/buildslave20/slave20/openoffice-linux32-nightly/build/main/sw/source/filter/ww8/writerhelper.cxx:154:35:
note: candidates are:
/home/buildslave20/slave20/openoffice-linux32-nightly/build/main/solver/350/unxlngi6.pro/inc/tools/gen.hxx:228:14:
note: Point operator*(const Point&, long int)
/home/buildslave20/slave20/openoffice-linux32-nightly/build/main/solver/350/unxlngi6.pro/inc/tools/gen.hxx:228:14:
note:   candidate expects 2 arguments, 1 provided
/home/buildslave20/slave20/openoffice-linux32-nightly/build/main/solver/350/unxlngi6.pro/inc/tools/fract.hxx:132:17:
note: Fraction operator*(const Fraction&, const Fraction&)
/home/buildslave20/slave20/openoffice-linux32-nightly/build/main/solver/350/unxlngi6.pro/inc/tools/fract.hxx:132:17:
note:   candidate expects 2 arguments, 1 provided
make: ***
[/home/buildslave20/slave20/openoffice-linux32-nightly/build/main/solver/350/unxlngi6.pro/workdir/CxxObject/sw/source/filter/ww8/writerhelper.o]
Error 1
make: *** Waiting for unfinished jobs....
dmake:  Error code 2, while making 'all'

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to