From 5e028ad5dccc6ff1a9250baf2196f7a2f235e314 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 23 Jun 2017 11:47:53 +0200 Subject: simplify some string handling in tracing calls Change-Id: I0fb76562429e691400a02216019c7f96791cf9b3 Reviewed-on: https://gerrit.libreoffice.org/39159 Tested-by: Jenkins Reviewed-by: Noel Grandin --- stoc/source/security/access_controller.cxx | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'stoc') diff --git a/stoc/source/security/access_controller.cxx b/stoc/source/security/access_controller.cxx index cbeb631d2be8..998c8b16ed47 100644 --- a/stoc/source/security/access_controller.cxx +++ b/stoc/source/security/access_controller.cxx @@ -607,13 +607,7 @@ PermissionCollection AccessController::getEffectivePermissions( rec->push_back( pair< OUString, Any >( userId, demanded_perm ) ); } #ifdef __DIAGNOSE - OUStringBuffer buf( 48 ); - buf.append( "> info: recurring call of user \"" ); - buf.append( userId ); - buf.append( "\"" ); - OString str( - OUStringToOString( buf.makeStringAndClear(), RTL_TEXTENCODING_ASCII_US ) ); - SAL_INFO("stoc",( "%s", str.getStr() ); + SAL_INFO("stoc", "> info: recurring call of user: " << userId ); #endif return PermissionCollection( new AllPermission() ); } -- cgit v1.2.3