<div class="gmail_quote">On Wed, Jan 11, 2012 at 3:39 PM, Keith McRae <span dir="ltr"><<a href="mailto:keithcoder@gmail.com">keithcoder@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello all<br><br>I've hacked the tools/inc/stream.hxx and tools/source/stream/stream.cxx to remove operator >>(long&) and operator <<(long). <br>To make tools/ build correctly I've also had to hack:<br>
<br>tools/source/generic/fract.cxx <br>tools/source/generic/gen.cxx <br>tools/source/generic/poly.cxx<br><br>SvStream& operator << ( SvStream& rOStream, const Fraction& rFract )<br>SvStream& operator >> ( SvStream& rIStream, Fraction& rFract )<br>
SvStream& operator>>( SvStream& rIStream, Pair& rPair )<br>SvStream& operator<<( SvStream& rOStream, const Pair& rPair )<br>SvStream& operator>>( SvStream& rIStream, Polygon& rPoly )<br>
SvStream& operator<<( SvStream& rOStream, const Polygon& rPoly )<br><br>so that these operators (de)serialize the Fraction, Pair and Polygon members (declared as long) as sal_Int32.<br>
<br>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? <br>
<br>Best regards<span class="HOEnZb"><font color="#888888"><br>Keith<br>
<br><br></font></span></blockquote><div><br>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 :-)<br></div></div><br><br>