summaryrefslogtreecommitdiff
path: root/rsc
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-07-08 16:39:53 +0200
committerStephan Bergmann <sbergman@redhat.com>2016-07-08 16:47:31 +0200
commit028dbf78be00cf74c8b7af7f45906b50215219c0 (patch)
treeb970fd76498e994c93c899f9ae09ede1c4569d7f /rsc
parent1b2a4dd785555dbcb79fcc2a1e2b604a0d706199 (diff)
loplugin:redundantcast: redundant static_casts in rsc
Change-Id: I6cdc267965d787ac4caa6ccb9e277fff18f9841f
Diffstat (limited to 'rsc')
-rw-r--r--rsc/source/parser/rsclex.cxx2
-rw-r--r--rsc/source/tools/rsctree.cxx8
2 files changed, 5 insertions, 5 deletions
diff --git a/rsc/source/parser/rsclex.cxx b/rsc/source/parser/rsclex.cxx
index 1db9c16caa32..1a665c1664d7 100644
--- a/rsc/source/parser/rsclex.cxx
+++ b/rsc/source/parser/rsclex.cxx
@@ -40,7 +40,7 @@
const char* StringContainer::putString( const char* pString )
{
- OString aString( static_cast<const sal_Char*>(pString) );
+ OString aString( pString );
std::pair<
std::unordered_set< OString, OStringHash >::iterator,
bool > aInsert =
diff --git a/rsc/source/tools/rsctree.cxx b/rsc/source/tools/rsctree.cxx
index 61ebb067a37c..7d9f67715f6b 100644
--- a/rsc/source/tools/rsctree.cxx
+++ b/rsc/source/tools/rsctree.cxx
@@ -301,8 +301,8 @@ bool NameNode::Insert( NameNode * pTN )
void NameNode::OrderTree()
{
- NameNode * pTmpLeft = static_cast<NameNode *>(Left());
- NameNode * pTmpRight = static_cast<NameNode *>(Right());
+ NameNode * pTmpLeft = Left();
+ NameNode * pTmpRight = Right();
pLeft = nullptr;
pRight = nullptr;
@@ -314,8 +314,8 @@ void NameNode::SubOrderTree( NameNode * pOrderNode )
{
if( pOrderNode )
{
- NameNode * pTmpLeft = static_cast<NameNode *>(pOrderNode->Left());
- NameNode * pTmpRight = static_cast<NameNode *>(pOrderNode->Right());
+ NameNode * pTmpLeft = pOrderNode->Left();
+ NameNode * pTmpRight = pOrderNode->Right();
pOrderNode->pLeft = nullptr;
pOrderNode->pRight = nullptr;
Insert( pOrderNode );