From d366c9b20ec86f3fe521812a0c22def3bfd1f05e Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 14 Nov 2013 08:16:35 +0200 Subject: remove unnecessary sal_Unicode casts in various places Change-Id: Ibf04062ca86ed866202d748c3b62a210d30ed6ec --- vbahelper/source/vbahelper/vbacommandbarhelper.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'vbahelper/source') diff --git a/vbahelper/source/vbahelper/vbacommandbarhelper.cxx b/vbahelper/source/vbahelper/vbacommandbarhelper.cxx index a95859c781ae..4725c66b3952 100644 --- a/vbahelper/source/vbahelper/vbacommandbarhelper.cxx +++ b/vbahelper/source/vbahelper/vbacommandbarhelper.cxx @@ -234,7 +234,7 @@ sal_Int32 VbaCommandBarHelper::findControlByName( const css::uno::Reference< css getPropertyValue( aProps, ITEM_DESCRIPTOR_LABEL ) >>= sLabel; // handle the hotkey marker '~' (remove in toolbars (?), replace by '&' in menus) OUStringBuffer aBuffer; - sal_Int32 index = sLabel.indexOf( sal_Unicode('~') ); + sal_Int32 index = sLabel.indexOf( '~' ); if( index < 0 ) { aBuffer = sLabel; @@ -243,7 +243,7 @@ sal_Int32 VbaCommandBarHelper::findControlByName( const css::uno::Reference< css { aBuffer.append( sLabel.copy( 0, index ) ); if( bMenu ) - aBuffer.append( sal_Unicode( '&' ) ); + aBuffer.append( '&' ); aBuffer.append( sLabel.copy( index + 1 ) ); } OUString sNewLabel = aBuffer.makeStringAndClear(); -- cgit