diff options
Diffstat (limited to 'svl')
-rw-r--r-- | svl/source/misc/documentlockfile.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/svl/source/misc/documentlockfile.cxx b/svl/source/misc/documentlockfile.cxx index f79e55e3f240..162b9dcab7c9 100644 --- a/svl/source/misc/documentlockfile.cxx +++ b/svl/source/misc/documentlockfile.cxx @@ -207,12 +207,19 @@ void DocumentLockFile::RemoveFile() || !aFileData[LockFileComponent::USERURL].equals( aNewEntry[LockFileComponent::USERURL] ) ) throw io::IOException(); // not the owner, access denied + RemoveFileDirectly(); +} + +void DocumentLockFile::RemoveFileDirectly() +{ uno::Reference < css::ucb::XCommandEnvironment > xEnv; ::ucbhelper::Content aCnt(m_aURL, xEnv, comphelper::getProcessComponentContext()); aCnt.executeCommand("delete", uno::makeAny(true)); } + + } // namespace svt /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |