From 2871d455ca0fefca64aaad0906a8e7739dbc88bb Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Fri, 29 Jun 2018 15:53:55 +0200 Subject: [PATCH] Improved loplugin:redundantcast (const-qualified typedefs): sal Change-Id: I64b6ffd3e43f14c5884bf6cf1c12ff3b147db6bd Reviewed-on: https://gerrit.libreoffice.org/56699 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- sal/osl/unx/file.cxx | 4 ++-- sal/qa/rtl/textenc/rtl_textcvt.cxx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sal/osl/unx/file.cxx b/sal/osl/unx/file.cxx index 27075be25e05..c2cbf768588b 100644 --- a/sal/osl/unx/file.cxx +++ b/sal/osl/unx/file.cxx @@ -320,12 +320,12 @@ oslFileError FileHandle_Impl::setSize(sal_uInt64 uSize) if (write(m_fd, "", size_t(1)) == -1) { /* Failure. Restore saved position */ - (void) lseek(m_fd, static_cast(nCurPos), SEEK_SET); + (void) lseek(m_fd, nCurPos, SEEK_SET); return result; } /* Success. Restore saved position */ - if (lseek(m_fd, static_cast(nCurPos), SEEK_SET) == -1) + if (lseek(m_fd, nCurPos, SEEK_SET) == -1) return result; } diff --git a/sal/qa/rtl/textenc/rtl_textcvt.cxx b/sal/qa/rtl/textenc/rtl_textcvt.cxx index 4bfdc41742e8..2fed8e82ecb1 100644 --- a/sal/qa/rtl/textenc/rtl_textcvt.cxx +++ b/sal/qa/rtl/textenc/rtl_textcvt.cxx @@ -89,7 +89,7 @@ void testSingleByteCharSet(SingleByteCharSet const & rSet) { ", rSet.m_aMap[" + OUString::number(i) + "] == " + OUString::number(rSet.m_aMap[i], 16)), RTL_TEXTENCODING_UTF8).getStr(), - static_cast(rSet.m_aMap[i]), aUnicode[j]); + rSet.m_aMap[i], aUnicode[j]); } if (rSet.m_aMap[i] != 0xFFFF) j++;