summaryrefslogtreecommitdiff
path: root/unotools
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2014-04-11 20:00:14 +0200
committerMichael Stahl <mstahl@redhat.com>2014-04-11 23:08:11 +0200
commite98e738a82885b6e7fb643bf407e504fe095803e (patch)
tree88cd7e8feddf736a7672a2d73349f5df07e65d68 /unotools
parente02a6cb2c3e2b23b203b422e4e0680877f232636 (diff)
replace some SvStream seeking with calls to remainingSize()
Change-Id: I2905e98425b9991d6138ab0adc15083d313ca445
Diffstat (limited to 'unotools')
-rw-r--r--unotools/source/ucbhelper/xtempfile.cxx10
1 files changed, 2 insertions, 8 deletions
diff --git a/unotools/source/ucbhelper/xtempfile.cxx b/unotools/source/ucbhelper/xtempfile.cxx
index 4d4f4faed467..f09b94e8c96f 100644
--- a/unotools/source/ucbhelper/xtempfile.cxx
+++ b/unotools/source/ucbhelper/xtempfile.cxx
@@ -227,14 +227,8 @@ throw ( css::io::NotConnectedException, css::io::IOException, css::uno::RuntimeE
checkConnected();
- sal_uInt32 nPos = mpStream->Tell();
- checkError();
-
- mpStream->Seek(STREAM_SEEK_TO_END);
- checkError();
-
- sal_Int32 nAvailable = (sal_Int32)mpStream->Tell() - nPos;
- mpStream->Seek(nPos);
+ sal_uInt32 const nAvailable =
+ static_cast<sal_uInt32>(mpStream->remainingSize());
checkError();
return nAvailable;