diff options
author | Andrea Gelmini <andrea.gelmini@gelma.net> | 2021-02-04 10:18:28 +0100 |
---|---|---|
committer | Andrea Gelmini <andrea.gelmini@gelma.net> | 2021-02-04 22:56:54 +0100 |
commit | 3ed9bba283a6a67864c0928186e277240be0d9ba (patch) | |
tree | 47d2bb70e269839cce5aa6645e0ad596faa64529 /comphelper | |
parent | 955fd7d8dc9da29717371c8fcb25d9954ff975bd (diff) |
Fix typo in code
Change-Id: Ib8b306a27d25a34e784aeeb72708b0d5d1511f3c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110394
Tested-by: Jenkins
Reviewed-by: Andrea Gelmini <andrea.gelmini@gelma.net>
Diffstat (limited to 'comphelper')
-rw-r--r-- | comphelper/source/misc/backupfilehelper.cxx | 10 | ||||
-rw-r--r-- | comphelper/source/streaming/oslfile2streamwrap.cxx | 4 |
2 files changed, 7 insertions, 7 deletions
diff --git a/comphelper/source/misc/backupfilehelper.cxx b/comphelper/source/misc/backupfilehelper.cxx index c7bcd4253ed0..8db40af9f76f 100644 --- a/comphelper/source/misc/backupfilehelper.cxx +++ b/comphelper/source/misc/backupfilehelper.cxx @@ -70,7 +70,7 @@ namespace // set offset in source file - should be zero due to crc32 should // only be needed to be created for new entries, gets loaded with old // ones - if (osl::File::E_None == rCandidate->setPos(osl_Pos_Absolut, sal_Int64(nOffset))) + if (osl::File::E_None == rCandidate->setPos(osl_Pos_Absolute, sal_Int64(nOffset))) { while (nSize != 0) { @@ -815,7 +815,7 @@ namespace sal_uInt64 nSize(getPackFileSize()); // set offset in source file - when this is zero, a new file is to be added - if (osl::File::E_None == maFile->setPos(osl_Pos_Absolut, sal_Int64(getOffset()))) + if (osl::File::E_None == maFile->setPos(osl_Pos_Absolute, sal_Int64(getOffset()))) { while (nSize != 0) { @@ -856,7 +856,7 @@ namespace if (Z_OK == deflateInit(zstream.get(), Z_BEST_COMPRESSION)) { // set offset in source file - when this is zero, a new file is to be added - if (osl::File::E_None == maFile->setPos(osl_Pos_Absolut, sal_Int64(getOffset()))) + if (osl::File::E_None == maFile->setPos(osl_Pos_Absolute, sal_Int64(getOffset()))) { bool bOkay(true); @@ -939,7 +939,7 @@ namespace if (Z_OK == inflateInit(zstream.get())) { // set offset in source file - when this is zero, a new file is to be added - if (osl::File::E_None == maFile->setPos(osl_Pos_Absolut, sal_Int64(getOffset()))) + if (osl::File::E_None == maFile->setPos(osl_Pos_Absolute, sal_Int64(getOffset()))) { bool bOkay(true); @@ -1314,7 +1314,7 @@ namespace if (bRetval) { // seek back to header start (at position 8) - if (osl_File_E_None != osl_setFilePos(aHandle, osl_Pos_Absolut, sal_Int64(8))) + if (osl_File_E_None != osl_setFilePos(aHandle, osl_Pos_Absolute, sal_Int64(8))) { bRetval = false; } diff --git a/comphelper/source/streaming/oslfile2streamwrap.cxx b/comphelper/source/streaming/oslfile2streamwrap.cxx index eff916a833ff..980efa317757 100644 --- a/comphelper/source/streaming/oslfile2streamwrap.cxx +++ b/comphelper/source/streaming/oslfile2streamwrap.cxx @@ -90,7 +90,7 @@ void SAL_CALL OSLInputStreamWrapper::skipBytes(sal_Int32 nBytesToSkip) throw css::io::NotConnectedException(OUString(), static_cast<css::uno::XWeak*>(this)); sal_uInt64 nNewPos = nCurrentPos + nBytesToSkip; - eError = m_pFile->setPos(osl_Pos_Absolut, nNewPos); + eError = m_pFile->setPos(osl_Pos_Absolute, nNewPos); if (eError != FileBase::E_None) throw css::io::NotConnectedException(OUString(), static_cast<css::uno::XWeak*>(this)); } @@ -116,7 +116,7 @@ sal_Int32 SAL_CALL OSLInputStreamWrapper::available() throw css::io::NotConnectedException(OUString(),static_cast<css::uno::XWeak*>(this)); nAvailable = nAvailable - nPos; - eError = m_pFile->setPos(osl_Pos_Absolut, nPos); + eError = m_pFile->setPos(osl_Pos_Absolute, nPos); if (eError != FileBase::E_None) throw css::io::NotConnectedException(OUString(),static_cast<css::uno::XWeak*>(this)); return std::min<sal_Int64>(nAvailable, SAL_MAX_INT32); |