diff options
Diffstat (limited to 'stoc/source/security/file_policy.cxx')
-rw-r--r-- | stoc/source/security/file_policy.cxx | 7 |
1 files changed, 2 insertions, 5 deletions
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( "<!" ); - error( buf.makeStringAndClear() ); + OUString msg = "expected >" + OUStringLiteral1(c) + "<!"; + error( msg ); } OUString PolicyReader::assureQuotedToken() |