summaryrefslogtreecommitdiff
path: root/configmgr
diff options
context:
space:
mode:
Diffstat (limited to 'configmgr')
-rw-r--r--configmgr/source/writemodfile.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/configmgr/source/writemodfile.cxx b/configmgr/source/writemodfile.cxx
index 359b5d7a9a06..09fe0949b0e9 100644
--- a/configmgr/source/writemodfile.cxx
+++ b/configmgr/source/writemodfile.cxx
@@ -114,7 +114,7 @@ void TempFile::closeAndRename(const OUString &_url) {
throw css::uno::RuntimeException(
"cannot close " + url);
}
- if (osl::File::move(url, _url) != osl::FileBase::E_None) {
+ if (osl::File::replace(url, _url) != osl::FileBase::E_None) {
throw css::uno::RuntimeException(
"cannot move " + url);
}