diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-03-26 15:29:18 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-03-26 15:33:32 +0100 |
commit | fbeb21e45b48102a145900de173213bebaa3c9f7 (patch) | |
tree | 212a12bed70a69429780a0fc0ee66f66655e3540 /idlc | |
parent | 5920dfe7deafbc673f4eaac321e8a2fdf477ca93 (diff) |
const_cast: convert some C-style casts and remove some redundant ones
Change-Id: I20cd0d2f3b38fdec90022844de2ac6bdb9978ee7
Diffstat (limited to 'idlc')
-rw-r--r-- | idlc/source/idlcproduce.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
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", |