Kaydet (Commit) fa683a70 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

const_cast: convert some C-style casts and remove some redundant ones

Change-Id: I88d1d082cc25a185322435a75c94f4c6b4ad12f8
üst 513fc291
...@@ -93,35 +93,35 @@ namespace treeview { ...@@ -93,35 +93,35 @@ namespace treeview {
void setApplication( const char* appl ) void setApplication( const char* appl )
{ {
application = OUString( (sal_Char*)(appl), application = OUString( appl,
strlen( appl ), strlen( appl ),
RTL_TEXTENCODING_UTF8 ); RTL_TEXTENCODING_UTF8 );
} }
void setTitle( const char* itle ) void setTitle( const char* itle )
{ {
title += OUString( (sal_Char*)(itle), title += OUString( itle,
strlen( itle ), strlen( itle ),
RTL_TEXTENCODING_UTF8 ); RTL_TEXTENCODING_UTF8 );
} }
void setTitle( const XML_Char* itle,int len ) void setTitle( const XML_Char* itle,int len )
{ {
title += OUString( (sal_Char*)(itle), title += OUString( itle,
len, len,
RTL_TEXTENCODING_UTF8 ); RTL_TEXTENCODING_UTF8 );
} }
void setId( const char* d ) void setId( const char* d )
{ {
id = OUString( (sal_Char*)(d), id = OUString( d,
strlen( d ), strlen( d ),
RTL_TEXTENCODING_UTF8 ); RTL_TEXTENCODING_UTF8 );
} }
void setAnchor( const char* nchor ) void setAnchor( const char* nchor )
{ {
anchor = OUString( (sal_Char*)(nchor), anchor = OUString( nchor,
strlen( nchor ), strlen( nchor ),
RTL_TEXTENCODING_UTF8 ); RTL_TEXTENCODING_UTF8 );
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment