summaryrefslogtreecommitdiff
path: root/basic
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2013-06-30 21:18:45 +0200
committerMichael Stahl <mstahl@redhat.com>2013-07-02 16:30:01 +0200
commit3835dee3c777bf10693903cb0866d22fab3794ea (patch)
tree0c990ad869ad007dd6ad3ea93a7ac6e9c91f68c8 /basic
parentee5ed806e2cf5780f90d52a2fc83055f497139b7 (diff)
SvStream: remove the error prone operator<</>>(sal_Int64)
As the recent regression after merging AOO patch adding code serializing "long" variables has shown, this overload (which was added in 7b2a0e541567be9750dfc7d98374555967da3470) is a bad idea. In a unxlngx build, nm finds uses of the symbols _ZN8SvStreamrsERl and _ZN8SvStreamlsEl in these files: - sbxvalue.cxx: this appears to be a legitimate use with sal_Int64 - dateitem.cxx: this was accidentally changed by commit 9830fd36dbdb72c79703b0c61efc027fba793c5a - atrfrm.cxx: this was added for Table Autoformat enhancement in 7e8c0bd73ee59ff3041e55268c77203373962e51, which is after the sal_Int64 operators were added, so the file format is now platform dependent Change-Id: I78352b5429b53612c4831cdb81b587b5de5180a9
Diffstat (limited to 'basic')
-rw-r--r--basic/source/sbx/sbxvalue.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/basic/source/sbx/sbxvalue.cxx b/basic/source/sbx/sbxvalue.cxx
index f0ea5d13d0f3..3efbdabbb375 100644
--- a/basic/source/sbx/sbxvalue.cxx
+++ b/basic/source/sbx/sbxvalue.cxx
@@ -1449,9 +1449,8 @@ sal_Bool SbxValue::LoadData( SvStream& r, sal_uInt16 )
break;
}
//#fdo39428 SvStream no longer supports operator>>(long&)
- //SvStream now has operator>>(sal_Int64&)
case SbxSALINT64:
- r >> aData.nInt64;
+ r.ReadInt64(aData.nInt64);
break;
case SbxSALUINT64:
r >> aData.uInt64;