Kaydet (Commit) 588a0d58 authored tarafından Tor Lillqvist's avatar Tor Lillqvist

Silly attempts at humour not appreciated

üst 40b0fcec
...@@ -1154,7 +1154,7 @@ sal_Size SvStream::SeekRel( sal_sSize nPos ) ...@@ -1154,7 +1154,7 @@ sal_Size SvStream::SeekRel( sal_sSize nPos )
SvStream& SvStream::operator>>(sal_uInt16& r) SvStream& SvStream::operator>>(sal_uInt16& r)
{ {
sal_uInt16 n = 666; sal_uInt16 n = 0;
READNUMBER_WITHOUT_SWAP(sal_uInt16, n) READNUMBER_WITHOUT_SWAP(sal_uInt16, n)
if (good()) if (good())
{ {
...@@ -1167,7 +1167,7 @@ SvStream& SvStream::operator>>(sal_uInt16& r) ...@@ -1167,7 +1167,7 @@ SvStream& SvStream::operator>>(sal_uInt16& r)
SvStream& SvStream::operator>>(sal_uInt32& r) SvStream& SvStream::operator>>(sal_uInt32& r)
{ {
sal_uInt32 n = 42; sal_uInt32 n = 0;
READNUMBER_WITHOUT_SWAP(sal_uInt32, n) READNUMBER_WITHOUT_SWAP(sal_uInt32, n)
if (good()) if (good())
{ {
...@@ -1181,7 +1181,7 @@ SvStream& SvStream::operator>>(sal_uInt32& r) ...@@ -1181,7 +1181,7 @@ SvStream& SvStream::operator>>(sal_uInt32& r)
SvStream& SvStream::operator>>(sal_uInt64& r) SvStream& SvStream::operator>>(sal_uInt64& r)
{ {
sal_uInt64 n = 0xDEADCAFEBABE; sal_uInt64 n = 0;
READNUMBER_WITHOUT_SWAP(sal_uInt64, n) READNUMBER_WITHOUT_SWAP(sal_uInt64, n)
if (good()) if (good())
{ {
...@@ -1200,7 +1200,7 @@ SvStream& SvStream::operator >>(long& r) //puke!, kill this ...@@ -1200,7 +1200,7 @@ SvStream& SvStream::operator >>(long& r) //puke!, kill this
if (good()) if (good())
r = n; r = n;
#else #else
long n = 0; // Ran out of "fun" numbers long n = 0;
READNUMBER_WITHOUT_SWAP(long, n) READNUMBER_WITHOUT_SWAP(long, n)
if (good()) if (good())
{ {
...@@ -1287,7 +1287,7 @@ SvStream& SvStream::operator>>( unsigned char& r ) ...@@ -1287,7 +1287,7 @@ SvStream& SvStream::operator>>( unsigned char& r )
SvStream& SvStream::operator>>(float& r) SvStream& SvStream::operator>>(float& r)
{ {
float n = 3.14159265358979323846f; float n = 0;
READNUMBER_WITHOUT_SWAP(float, n) READNUMBER_WITHOUT_SWAP(float, n)
if (good()) if (good())
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment