diff options
Diffstat (limited to 'l10ntools')
-rw-r--r-- | l10ntools/source/helper.cxx | 2 | ||||
-rw-r--r-- | l10ntools/source/helpex.cxx | 2 | ||||
-rw-r--r-- | l10ntools/source/merge.cxx | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/l10ntools/source/helper.cxx b/l10ntools/source/helper.cxx index a14c079dd302..c16d104b34e9 100644 --- a/l10ntools/source/helper.cxx +++ b/l10ntools/source/helper.cxx @@ -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; } diff --git a/l10ntools/source/helpex.cxx b/l10ntools/source/helpex.cxx index 6fc5e328ac7a..1ceda2f08a18 100644 --- a/l10ntools/source/helpex.cxx +++ b/l10ntools/source/helpex.cxx @@ -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 + diff --git a/l10ntools/source/merge.cxx b/l10ntools/source/merge.cxx index a86ddf96124e..b80eaf91b232 100644 --- a/l10ntools/source/merge.cxx +++ b/l10ntools/source/merge.cxx @@ -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() ) |