summaryrefslogtreecommitdiff
path: root/sc/source/ui/unoobj/exceldetect.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/ui/unoobj/exceldetect.cxx')
-rw-r--r--sc/source/ui/unoobj/exceldetect.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/sc/source/ui/unoobj/exceldetect.cxx b/sc/source/ui/unoobj/exceldetect.cxx
index 6d5ccd796ab6..9ab0890c977e 100644
--- a/sc/source/ui/unoobj/exceldetect.cxx
+++ b/sc/source/ui/unoobj/exceldetect.cxx
@@ -56,8 +56,7 @@ bool hasStream(const uno::Reference<io::XInputStream>& xInStream, const OUString
if (!pStream)
return false;
- pStream->Seek(STREAM_SEEK_TO_END);
- sal_uInt64 const nSize = pStream->Tell();
+ sal_uInt64 const nSize = pStream->TellEnd();
pStream->Seek(0);
if (!nSize)
@@ -94,8 +93,7 @@ bool isExcel40(const uno::Reference<io::XInputStream>& xInStream)
if (!pStream)
return false;
- pStream->Seek(STREAM_SEEK_TO_END);
- sal_uInt64 const nSize = pStream->Tell();
+ sal_uInt64 const nSize = pStream->TellEnd();
pStream->Seek(0);
if (nSize < 4)