From 4a96fb8ec0130e1036913093836bcf28bc37a49b Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 16 Oct 2019 10:13:30 +0200 Subject: loplugin:bufferadd loosen some constraints and extend O*StringView to have a constructor that takes a pointer and a length Change-Id: I6120e96280f030757e855a6596efdae438b7e1e8 Reviewed-on: https://gerrit.libreoffice.org/80872 Tested-by: Jenkins Reviewed-by: Noel Grandin --- stoc/source/security/file_policy.cxx | 7 ++----- stoc/source/security/permissions.cxx | 7 ++----- 2 files changed, 4 insertions(+), 10 deletions(-) (limited to 'stoc') diff --git a/stoc/source/security/file_policy.cxx b/stoc/source/security/file_policy.cxx index 9d8edc2bf102..08d97cfdbf44 100644 --- a/stoc/source/security/file_policy.cxx +++ b/stoc/source/security/file_policy.cxx @@ -172,11 +172,8 @@ void PolicyReader::assureToken( sal_Unicode token ) sal_Unicode c = get(); if (c == token) return; - OUStringBuffer buf( 16 ); - buf.append( "expected >" ); - buf.append( c ); - buf.append( "" + OUStringLiteral1(c) + "