diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2018-01-12 20:20:59 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2018-01-12 20:20:59 +0100 |
commit | 95adb247b62b8e4368fa473af3f0e01c420d4f6b (patch) | |
tree | 11cd81d3a5e00a0745446b1fe85ec7c615c556b6 /l10ntools | |
parent | 4fdd5eff7d4e10eb0a709c79b30b7411e4297d42 (diff) |
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
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() ) |