[llvm-commits] CVS: llvm/lib/System/Win32/Path.cpp

Reid Spencer reid at x10sys.com
Wed Dec 15 15:02:22 PST 2004



Changes in directory llvm/lib/System/Win32:

Path.cpp updated: 1.19 -> 1.20
---
Log message:

Change the signatures of the destroyFile and destroyDirectory methods to
const because they affect the file system, not the Path object.


---
Diffs of the changes:  (+2 -2)

Index: llvm/lib/System/Win32/Path.cpp
diff -u llvm/lib/System/Win32/Path.cpp:1.19 llvm/lib/System/Win32/Path.cpp:1.20
--- llvm/lib/System/Win32/Path.cpp:1.19	Wed Dec 15 16:22:51 2004
+++ llvm/lib/System/Win32/Path.cpp	Wed Dec 15 17:02:10 2004
@@ -503,7 +503,7 @@
 }
 
 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 @@
 }
 
 bool
-Path::destroyFile() {
+Path::destroyFile() const {
   if (!isFile()) return false;
 
   DWORD attr = GetFileAttributes(path.c_str());






More information about the llvm-commits mailing list