[Libreoffice] [LibreOffice] fdo#39428 Remove/audit SvStream operator long
keithcoder at gmail.com
Wed Jan 11 09:51:09 PST 2012
On Wed, Jan 11, 2012 at 3:39 PM, Keith McRae <keithcoder at gmail.com> wrote:
> Hello all
> I've hacked the tools/inc/stream.hxx and tools/source/stream/stream.cxx to
> remove operator >>(long&) and operator <<(long).
> To make tools/ build correctly I've also had to hack:
> SvStream& operator << ( SvStream& rOStream, const Fraction& rFract )
> SvStream& operator >> ( SvStream& rIStream, Fraction& rFract )
> SvStream& operator>>( SvStream& rIStream, Pair& rPair )
> SvStream& operator<<( SvStream& rOStream, const Pair& rPair )
> SvStream& operator>>( SvStream& rIStream, Polygon& rPoly )
> SvStream& operator<<( SvStream& rOStream, const Polygon& rPoly )
> so that these operators (de)serialize the Fraction, Pair and Polygon
> members (declared as long) as sal_Int32.
> Trying a full build resulted in "undefined reference to
> SvStream::operator>>(long&)" in svl/ vcl/ and svtools/ (so far). As most of
> these errors are the result of trying to (de)serialize Pair derived
> classes, I'm now wondering whether it may be a good idea to change the
> troublesome members of these classes to sal_ types?
> Best regards
A quick hack and attempt at build tells me that would be a complete
nightmare! I'll leave that until I'm more familiar with the code :-)
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the LibreOffice