Improved loplugin:redundantcast (const-qualified typedefs): sal
Change-Id: I64b6ffd3e43f14c5884bf6cf1c12ff3b147db6bd Reviewed-on: https://gerrit.libreoffice.org/56699 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
This commit is contained in:
@@ -320,12 +320,12 @@ oslFileError FileHandle_Impl::setSize(sal_uInt64 uSize)
|
|||||||
if (write(m_fd, "", size_t(1)) == -1)
|
if (write(m_fd, "", size_t(1)) == -1)
|
||||||
{
|
{
|
||||||
/* Failure. Restore saved position */
|
/* Failure. Restore saved position */
|
||||||
(void) lseek(m_fd, static_cast<off_t>(nCurPos), SEEK_SET);
|
(void) lseek(m_fd, nCurPos, SEEK_SET);
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Success. Restore saved position */
|
/* Success. Restore saved position */
|
||||||
if (lseek(m_fd, static_cast<off_t>(nCurPos), SEEK_SET) == -1)
|
if (lseek(m_fd, nCurPos, SEEK_SET) == -1)
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -89,7 +89,7 @@ void testSingleByteCharSet(SingleByteCharSet const & rSet) {
|
|||||||
", rSet.m_aMap[" + OUString::number(i) + "] == " +
|
", rSet.m_aMap[" + OUString::number(i) + "] == " +
|
||||||
OUString::number(rSet.m_aMap[i], 16)),
|
OUString::number(rSet.m_aMap[i], 16)),
|
||||||
RTL_TEXTENCODING_UTF8).getStr(),
|
RTL_TEXTENCODING_UTF8).getStr(),
|
||||||
static_cast<sal_Unicode>(rSet.m_aMap[i]), aUnicode[j]);
|
rSet.m_aMap[i], aUnicode[j]);
|
||||||
}
|
}
|
||||||
if (rSet.m_aMap[i] != 0xFFFF)
|
if (rSet.m_aMap[i] != 0xFFFF)
|
||||||
j++;
|
j++;
|
||||||
|
Reference in New Issue
Block a user