diff options
Diffstat (limited to 'ucb/source/ucp/file/shell.hxx')
-rw-r--r-- | ucb/source/ucp/file/shell.hxx | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/ucb/source/ucp/file/shell.hxx b/ucb/source/ucp/file/shell.hxx index 2a05712557d3..5b1ff4249537 100644 --- a/ucb/source/ucp/file/shell.hxx +++ b/ucb/source/ucp/file/shell.hxx @@ -301,9 +301,7 @@ namespace fileaccess { const OUString& dstUnqPath, sal_Int32 NameClash ); -#define RemoveFolder 1 -#define RemoveFile -1 -#define RemoveUnknown 0 + enum class FileUrlType { Folder = 1, File = -1, Unknown = 0 }; /** * Deletes the content belonging to fileURL aUnqPath( recursively in case of directory ) @@ -312,13 +310,9 @@ namespace fileaccess { bool SAL_CALL remove( sal_Int32 CommandId, const OUString& aUnqPath, - sal_Int32 TypeToMove = RemoveUnknown, + FileUrlType eTypeToMove = FileUrlType::Unknown, bool MustExist = true ); -#undef RemoveUnknown -#undef RemoveFile -#undef RemoveFolder - /********************************************************************************/ /* write and create - commandos */ @@ -503,7 +497,7 @@ namespace fileaccess { copy_recursive( const OUString& srcUnqPath, const OUString& dstUnqPath, - sal_Int32 TypeToCopy, + FileUrlType TypeToCopy, bool testExistence ); |