From dffc29614f84200006bff8dff768ddd123cc3237 Mon Sep 17 00:00:00 2001 From: Thomas Arnhold Date: Thu, 22 May 2014 11:14:12 +0200 Subject: cppcheck: fprintf format string requires 1 parameter but only 0 are given Change-Id: I31a5a4e2bad79cfc425fb712688794a4a1dc4f60 --- stoc/test/testcorefl.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/stoc/test/testcorefl.cxx b/stoc/test/testcorefl.cxx index 3a049050b99b..d958301beaf7 100644 --- a/stoc/test/testcorefl.cxx +++ b/stoc/test/testcorefl.cxx @@ -228,7 +228,7 @@ static sal_Bool test_corefl( const Reference< XIdlReflection > & xRefl ) try { - fprintf( stderr, "%1\n" ); + SAL_WARN( "stoc", "case 1" ); Any bla = xRefl->forName("ModuleA.StructC")->getField(OUString("aString"))->get(Any()); OSL_ENSURE(sal_False, "test_RegCoreReflection(): error 63"); return sal_False; @@ -239,7 +239,7 @@ static sal_Bool test_corefl( const Reference< XIdlReflection > & xRefl ) try { - fprintf( stderr, "%2\n" ); + SAL_WARN( "stoc", "case 2" ); Any blup; blup <<= aStructC; Any gulp; @@ -254,7 +254,7 @@ static sal_Bool test_corefl( const Reference< XIdlReflection > & xRefl ) try { - fprintf( stderr, "%3\n" ); + SAL_WARN( "stoc", "case 3" ); Any gulp; gulp <<= 3.14f; Any blup; @@ -280,7 +280,7 @@ static sal_Bool test_corefl( const Reference< XIdlReflection > & xRefl ) try { Sequence< Any > params; - fprintf( stderr, "%4\n" ); + SAL_WARN( "stoc", "case 4" ); Any a; a <<= xAI; -- cgit v1.2.3