diff options
author | Michael Stahl <mstahl@redhat.com> | 2014-04-11 20:00:14 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2014-04-11 23:08:11 +0200 |
commit | e98e738a82885b6e7fb643bf407e504fe095803e (patch) | |
tree | 88cd7e8feddf736a7672a2d73349f5df07e65d68 /unotools/source/ucbhelper/xtempfile.cxx | |
parent | add a ras import test (diff) | |
download | core-e98e738a82885b6e7fb643bf407e504fe095803e.tar.gz core-e98e738a82885b6e7fb643bf407e504fe095803e.zip |
replace some SvStream seeking with calls to remainingSize()
Change-Id: I2905e98425b9991d6138ab0adc15083d313ca445
Diffstat (limited to 'unotools/source/ucbhelper/xtempfile.cxx')
-rw-r--r-- | unotools/source/ucbhelper/xtempfile.cxx | 10 |
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; |