summaryrefslogtreecommitdiff
path: root/xmlhelp
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-03-26 15:32:35 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-03-26 15:33:40 +0100
commitfa683a7020837ee04b8f610490edf08b686cb6b8 (patch)
tree72962b3a316a488a2c44f2374be10aecdf41140c /xmlhelp
parent513fc2916053db5ee7ffaf9f53c271a05cef8981 (diff)
const_cast: convert some C-style casts and remove some redundant ones
Change-Id: I88d1d082cc25a185322435a75c94f4c6b4ad12f8
Diffstat (limited to 'xmlhelp')
-rw-r--r--xmlhelp/source/treeview/tvread.cxx10
1 files changed, 5 insertions, 5 deletions
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 );
}