From fa683a7020837ee04b8f610490edf08b686cb6b8 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Thu, 26 Mar 2015 15:32:35 +0100 Subject: const_cast: convert some C-style casts and remove some redundant ones Change-Id: I88d1d082cc25a185322435a75c94f4c6b4ad12f8 --- xmlhelp/source/treeview/tvread.cxx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'xmlhelp') diff --git a/xmlhelp/source/treeview/tvread.cxx b/xmlhelp/source/treeview/tvread.cxx index c43ba25b8fbe..5d6ebbd1f71c 100644 --- a/xmlhelp/source/treeview/tvread.cxx +++ b/xmlhelp/source/treeview/tvread.cxx @@ -93,35 +93,35 @@ namespace treeview { void setApplication( const char* appl ) { - application = OUString( (sal_Char*)(appl), + application = OUString( appl, strlen( appl ), RTL_TEXTENCODING_UTF8 ); } void setTitle( const char* itle ) { - title += OUString( (sal_Char*)(itle), + title += OUString( itle, strlen( itle ), RTL_TEXTENCODING_UTF8 ); } void setTitle( const XML_Char* itle,int len ) { - title += OUString( (sal_Char*)(itle), + title += OUString( itle, len, RTL_TEXTENCODING_UTF8 ); } void setId( const char* d ) { - id = OUString( (sal_Char*)(d), + id = OUString( d, strlen( d ), RTL_TEXTENCODING_UTF8 ); } void setAnchor( const char* nchor ) { - anchor = OUString( (sal_Char*)(nchor), + anchor = OUString( nchor, strlen( nchor ), RTL_TEXTENCODING_UTF8 ); } -- cgit