diff options
author | Mathieu Malaterre <mathieu.malaterre@gmail.com> | 2006-03-17 17:06:41 (GMT) |
---|---|---|
committer | Mathieu Malaterre <mathieu.malaterre@gmail.com> | 2006-03-17 17:06:41 (GMT) |
commit | e9fcafafe52d01cc3b89190b3787bebd807198f0 (patch) | |
tree | fc258cf2774def39138c6fbde9780cef1cad4cb4 /Source/kwsys/Directory.hxx.in | |
parent | d5631f370b2355b69e5895734d8fe7e4c090e8cf (diff) | |
download | CMake-e9fcafafe52d01cc3b89190b3787bebd807198f0.zip CMake-e9fcafafe52d01cc3b89190b3787bebd807198f0.tar.gz CMake-e9fcafafe52d01cc3b89190b3787bebd807198f0.tar.bz2 |
ENH: Use const char where it should have been. At same time fix Bug#2958
Diffstat (limited to 'Source/kwsys/Directory.hxx.in')
-rw-r--r-- | Source/kwsys/Directory.hxx.in | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/Source/kwsys/Directory.hxx.in b/Source/kwsys/Directory.hxx.in index 64d4184..22aafcc 100644 --- a/Source/kwsys/Directory.hxx.in +++ b/Source/kwsys/Directory.hxx.in @@ -23,30 +23,30 @@ class DirectoryInternals; /** \class Directory * \brief Portable directory/filename traversal. - * + * * Directory provides a portable way of finding the names of the files * in a system directory. * * Directory currently works with Windows and Unix operating systems. */ -class @KWSYS_NAMESPACE@_EXPORT Directory +class @KWSYS_NAMESPACE@_EXPORT Directory { public: Directory(); ~Directory(); - + /** * Load the specified directory and load the names of the files - * in that directory. 0 is returned if the directory can not be - * opened, 1 if it is opened. + * in that directory. 0 is returned if the directory can not be + * opened, 1 if it is opened. */ bool Load(const char*); - + /** * Return the number of files in the current directory. */ unsigned long GetNumberOfFiles() const; - + /** * Return the file at the given index, the indexing is 0 based */ @@ -57,10 +57,9 @@ public: */ const char* GetPath() const; -protected: /** - * Clear the internal structure. Used internally at beginning of Load(...) to clear - * the cache. + * Clear the internal structure. Used internally at beginning of Load(...) + * to clear the cache. */ void Clear(); |