summaryrefslogtreecommitdiff
path: root/sal/osl/unx/file.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-07-25 13:56:57 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-07-26 08:31:55 +0200
commitba42d00ed5a04850f88abdf184a4855db7cf2700 (patch)
treeaf8ec0b48accf0abb7dce9f0fb0194cd60440e14 /sal/osl/unx/file.cxx
parentee025b744ac9efafe7c083ed80f8e2cc7cb3e2c1 (diff)
loplugin:returnconstant in sal,l10ntools,sot
Change-Id: I3f4e4efa8ea839f48b9700ebc26c7e5ab279ce49 Reviewed-on: https://gerrit.libreoffice.org/57975 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sal/osl/unx/file.cxx')
-rw-r--r--sal/osl/unx/file.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sal/osl/unx/file.cxx b/sal/osl/unx/file.cxx
index 40aadc940e88..0101bf6f8e36 100644
--- a/sal/osl/unx/file.cxx
+++ b/sal/osl/unx/file.cxx
@@ -100,7 +100,7 @@ struct FileHandle_Impl
static size_t getpagesize();
sal_uInt64 getPos() const;
- oslFileError setPos(sal_uInt64 uPos);
+ void setPos(sal_uInt64 uPos);
sal_uInt64 getSize() const;
oslFileError setSize(sal_uInt64 uSize);
@@ -282,10 +282,9 @@ sal_uInt64 FileHandle_Impl::getPos() const
return sal::static_int_cast< sal_uInt64 >(m_fileptr);
}
-oslFileError FileHandle_Impl::setPos(sal_uInt64 uPos)
+void FileHandle_Impl::setPos(sal_uInt64 uPos)
{
m_fileptr = sal::static_int_cast< off_t >(uPos);
- return osl_File_E_None;
}
sal_uInt64 FileHandle_Impl::getSize() const
@@ -1490,7 +1489,8 @@ oslFileError SAL_CALL osl_setFilePos(oslFileHandle Handle, sal_uInt32 uHow, sal_
return osl_File_E_INVAL;
}
- return pImpl->setPos(nPos + nOffset);
+ pImpl->setPos(nPos + nOffset);
+ return osl_File_E_None;
}
oslFileError SAL_CALL osl_getFileSize(oslFileHandle Handle, sal_uInt64* pSize)