summaryrefslogtreecommitdiff
path: root/idlc
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@suse.cz>2012-12-02 16:15:22 +0100
committerLuboš Luňák <l.lunak@suse.cz>2012-12-02 16:17:03 +0100
commitf728eda90912ee0e2072e422dcf7eb6589d24497 (patch)
tree641ab34aa2250e88cef5822a7c4e600df664d8dc /idlc
parent5e0bd1f73ae267c317eb625fbfe7bb61e82dfb0f (diff)
unlink() doesn't work that well with URLs
Change-Id: I1d0cbd8b8cbbd3ea5c73d0cea6d9e354b1740c7c
Diffstat (limited to 'idlc')
-rw-r--r--idlc/source/idlcproduce.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/idlc/source/idlcproduce.cxx b/idlc/source/idlcproduce.cxx
index 3fd04b605d4f..93dc8ba7df86 100644
--- a/idlc/source/idlcproduce.cxx
+++ b/idlc/source/idlcproduce.cxx
@@ -120,7 +120,7 @@ static sal_Bool cleanPath()
void removeIfExists(const OString& pathname)
{
- unlink(pathname.getStr());
+ osl::File::remove(OStringToOUString(pathname, RTL_TEXTENCODING_UTF8));
}
sal_Int32 SAL_CALL