summaryrefslogtreecommitdiff
path: root/sal/rtl
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-03-26 15:30:19 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-03-26 15:33:35 +0100
commit3ce8a7dab59b7a77e1223d1357e6c32c31e4fba6 (patch)
tree9d6b6ac9fb7e0874580568220e802ba9e0dc94cd /sal/rtl
parente4fbe2582c4e042f50db3d5d86b717fe15721ab5 (diff)
const_cast: convert some C-style casts and remove some redundant ones
Change-Id: I03e43d219a65aa270f73a91896e0e7a567d424bc
Diffstat (limited to 'sal/rtl')
-rw-r--r--sal/rtl/strtmpl.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sal/rtl/strtmpl.cxx b/sal/rtl/strtmpl.cxx
index 4a90c2ea74e4..55351501ab3e 100644
--- a/sal/rtl/strtmpl.cxx
+++ b/sal/rtl/strtmpl.cxx
@@ -1242,7 +1242,7 @@ void SAL_CALL IMPL_RTL_STRINGNAME( new )( IMPL_RTL_STRINGDATA** ppThis )
if ( *ppThis)
IMPL_RTL_STRINGNAME( release )( *ppThis );
- *ppThis = (IMPL_RTL_STRINGDATA*) (&IMPL_RTL_EMPTYSTRING);
+ *ppThis = const_cast<IMPL_RTL_STRINGDATA*>(&IMPL_RTL_EMPTYSTRING);
}
/* ----------------------------------------------------------------------- */