[Libreoffice-commits] core.git: cpputools/source
Arnaud Versini (via logerrit)
logerrit at kemper.freedesktop.org
Mon Jul 26 11:46:08 UTC 2021
cpputools/source/unoexe/unoexe.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 057191fb50ea2ae9cca42ef84329581094047db8
Author: Arnaud Versini <arnaud.versini at libreoffice.org>
AuthorDate: Sun Jul 18 18:04:44 2021 +0200
Commit: Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Mon Jul 26 13:45:34 2021 +0200
cpputools : no need to use fprintf for putting a string
Change-Id: Icb7f0930713d7c9fe2553913dbdc5e36617f856a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119128
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>
diff --git a/cpputools/source/unoexe/unoexe.cxx b/cpputools/source/unoexe/unoexe.cxx
index add2d0e4a192..2181e850d7fe 100644
--- a/cpputools/source/unoexe/unoexe.cxx
+++ b/cpputools/source/unoexe/unoexe.cxx
@@ -67,7 +67,7 @@ static bool s_quiet = false;
static void out( const char * pText )
{
if (! s_quiet)
- fprintf( stderr, "%s", pText );
+ fputs( pText, stderr );
}
static void out( std::u16string_view rText )
@@ -75,7 +75,7 @@ static void out( std::u16string_view rText )
if (! s_quiet)
{
OString aText( OUStringToOString( rText, RTL_TEXTENCODING_ASCII_US ) );
- fprintf( stderr, "%s", aText.getStr() );
+ fputs( aText.getStr(), stderr );
}
}
More information about the Libreoffice-commits
mailing list