Kaydet (Commit) fbeb21e4 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

const_cast: convert some C-style casts and remove some redundant ones

Change-Id: I20cd0d2f3b38fdec90022844de2ac6bdb9978ee7
üst 5920dfe7
......@@ -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",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment