Kaydet (Commit) 95adb247 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

More loplugin:cstylecast: l10ntools

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: I062bc41d2feb8b50371da345edac0e65e0d187b2
üst 4fdd5eff
......@@ -127,7 +127,7 @@ bool isWellFormedXML( OString const & text )
content = "<root>";
content += text;
content += "</root>";
doc = xmlParseMemory(content.getStr(),(int)content.getLength());
doc = xmlParseMemory(content.getStr(),static_cast<int>(content.getLength()));
if (doc == nullptr) {
result = false;
}
......
......@@ -89,7 +89,7 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv)
while( !aInput.eof() )
{
// coverity[tainted_data] - this is a build time tool
const OString sXhpFile( sTemp.data(), (sal_Int32)sTemp.length() );
const OString sXhpFile( sTemp.data(), static_cast<sal_Int32>(sTemp.length()) );
HelpParser aParser( sXhpFile );
const OString sOutput(
aArgs.m_sOutputFile +
......
......@@ -199,7 +199,7 @@ MergeDataFile::MergeDataFile(
const OString sFileName( lcl_NormalizeFilename(rFile) );
const bool bReadAll = sFileName.isEmpty();
// coverity[tainted_data] - this is a build time tool
const OString sPoFileName(sPoFile.data(), (sal_Int32)sPoFile.length());
const OString sPoFileName(sPoFile.data(), static_cast<sal_Int32>(sPoFile.length()));
PoIfstream aPoInput;
aPoInput.open( sPoFileName );
if ( !aPoInput.isOpen() )
......
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