Kaydet (Commit) 57bbe564 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

More loplugin:cstylecast: idlc

auto-rewrite with <https://gerrit.libreoffice.org/#/c/47798/> "Enable
loplugin:cstylecast for some more cases" plus
solenv/clang-format/reformat-formatted-files

Change-Id: I1cb9e69b8138cb5bb63f18231018f166b67b3072
üst ac489a4d
......@@ -37,7 +37,7 @@ public:
AstDeclaration* addDeclaration(AstDeclaration* pDecl);
sal_uInt32 nMembers() const
{ return (sal_uInt32)(m_declarations.size()); }
{ return static_cast<sal_uInt32>(m_declarations.size()); }
DeclList::const_iterator getIteratorBegin() const
{ return m_declarations.begin(); }
DeclList::const_iterator getIteratorEnd() const
......
This diff is collapsed.
......@@ -41,7 +41,7 @@ bool AstOperation::isVariadic() const {
bool AstOperation::dumpBlob(typereg::Writer & rBlob, sal_uInt16 index)
{
sal_uInt16 nParam = getNodeCount(NT_parameter);
sal_uInt16 nExcep = (sal_uInt16)m_exceptions.size();
sal_uInt16 nExcep = static_cast<sal_uInt16>(m_exceptions.size());
OUString returnTypeName;
if (m_pReturnType == nullptr) {
......
......@@ -136,7 +136,7 @@ OString makeTempName(const OString& prefix)
#if defined(SAL_W32) || defined(SAL_UNX)
OSL_ASSERT( sizeof(tmpFilePattern) >
(size_t) ( tmpPath.getLength()
static_cast<size_t>( tmpPath.getLength()
+ RTL_CONSTASCII_LENGTH( PATH_SEPARATOR )
+ prefix.getLength()
+ RTL_CONSTASCII_LENGTH( "XXXXXX") ) );
......@@ -329,7 +329,7 @@ sal_Int32 compileFile(const OString * pathname)
nullptr, startDir.pData, nullptr, 0, &hProcess );
oslProcessInfo hInfo;
hInfo.Size = (sal_uInt32)(sizeof(oslProcessInfo));
hInfo.Size = sal_uInt32(sizeof(oslProcessInfo));
if (osl_getProcessInfo(hProcess, osl_Process_EXITCODE, &hInfo)
!= osl_Process_E_None)
{
......
......@@ -76,7 +76,7 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv)
if ( options.verbose() )
{
fprintf( stdout, "%s: compiling %i source files ... \n",
options.getProgramName().getStr(), (int)files.size() );
options.getProgramName().getStr(), static_cast<int>(files.size()) );
fflush( stdout );
}
for (std::vector< OString >::const_iterator i(files.begin());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment