incubator-ooo-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 120106] There is a memory leak in function SwHTMLWriter::CollectFlyFrms
Date Sat, 30 Jun 2012 09:46:56 GMT
https://issues.apache.org/ooo/show_bug.cgi?id=120106

Ariel Constenla-Haile <arielch@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |arielch@apache.org

--- Comment #13 from Ariel Constenla-Haile <arielch@apache.org> ---
(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.

Mime
View raw message