From fbeb21e45b48102a145900de173213bebaa3c9f7 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Thu, 26 Mar 2015 15:29:18 +0100 Subject: const_cast: convert some C-style casts and remove some redundant ones Change-Id: I20cd0d2f3b38fdec90022844de2ac6bdb9978ee7 --- idlc/source/idlcproduce.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'idlc/source') diff --git a/idlc/source/idlcproduce.cxx b/idlc/source/idlcproduce.cxx index 35a3a20a5517..4d3645c34222 100644 --- a/idlc/source/idlcproduce.cxx +++ b/idlc/source/idlcproduce.cxx @@ -69,7 +69,7 @@ static bool checkOutputPath(const OString& completeName) if ( !buffer.isEmpty() && nIndex != -1 ) { #if defined(SAL_UNX) - if (mkdir((char*)buffer.getStr(), 0777) == -1) + if (mkdir(buffer.getStr(), 0777) == -1) #else if (mkdir((char*)buffer.getStr()) == -1) #endif @@ -103,7 +103,7 @@ static bool cleanPath() //#ifdef SAL_UNX // if (rmdir((char*)(*iter).getStr(), 0777) == -1) //#else - if (rmdir((char*)(*iter).getStr()) == -1) + if (rmdir((*iter).getStr()) == -1) //#endif { fprintf(stderr, "%s: cannot remove directory '%s'\n", -- cgit