summaryrefslogtreecommitdiff
path: root/oox/source/helper/binaryinputstream.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-12-12 12:48:44 +0200
committerNoel Grandin <noel@peralex.com>2014-12-12 12:50:31 +0200
commit7948b273a9725c546e0dc32bece296dc872bdc04 (patch)
tree0626385905b97e513b43664041ab3465efabb1aa /oox/source/helper/binaryinputstream.cxx
parente123ffd66088783ce74a7b5f15e9d324b39ecf67 (diff)
fix commit
fix my commit aa2f02a4dc8a05f49e679a26f2beebb9d66b232 "remove operator>> and operator<< methods" I incorrectly inverted the conditional Change-Id: Iade05b88bdedb7e5b0cff25a80d3b88ff4a0235f
Diffstat (limited to 'oox/source/helper/binaryinputstream.cxx')
-rw-r--r--oox/source/helper/binaryinputstream.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/oox/source/helper/binaryinputstream.cxx b/oox/source/helper/binaryinputstream.cxx
index 7597981c29ec..3c41921beb37 100644
--- a/oox/source/helper/binaryinputstream.cxx
+++ b/oox/source/helper/binaryinputstream.cxx
@@ -45,7 +45,7 @@ OUString BinaryInputStream::readNulUnicodeArray()
for (;;)
{
sal_uInt16 nChar = readuInt16();
- if ( mbEof || (nChar < 0) ) break;
+ if ( mbEof || (nChar == 0) ) break;
aBuffer.append( static_cast< sal_Unicode >( nChar ) );
}
return aBuffer.makeStringAndClear();