diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2004-12-15 23:02:10 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2004-12-15 23:02:10 +0000 |
commit | 00e89302069fe55e1dae58360bb9f7fd243d0b2b (patch) | |
tree | 755125bf5cbaddc34d016dcf09d1e942a336da8d /lib/System/Win32/Path.cpp | |
parent | 2d01af2c31c3d82d83b0debe9b9f5b0237393b7d (diff) |
Change the signatures of the destroyFile and destroyDirectory methods to
const because they affect the file system, not the Path object.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18973 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/System/Win32/Path.cpp')
-rw-r--r-- | lib/System/Win32/Path.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/System/Win32/Path.cpp b/lib/System/Win32/Path.cpp index d76dcd0017..3e179eaf48 100644 --- a/lib/System/Win32/Path.cpp +++ b/lib/System/Win32/Path.cpp @@ -503,7 +503,7 @@ Path::createFile() { } bool -Path::destroyDirectory(bool remove_contents) { +Path::destroyDirectory(bool remove_contents) const { // Make sure we're dealing with a directory if (!isDirectory()) return false; @@ -532,7 +532,7 @@ Path::destroyDirectory(bool remove_contents) { } bool -Path::destroyFile() { +Path::destroyFile() const { if (!isFile()) return false; DWORD attr = GetFileAttributes(path.c_str()); |