summaryrefslogtreecommitdiffstats
path: root/Source/kwsys/Directory.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-05-16 15:39:01 (GMT)
committerBrad King <brad.king@kitware.com>2017-05-16 15:39:01 (GMT)
commit16ebd9f6152fedd1804f13c91ed14e8963e53d3f (patch)
treea29304959eb94ee499148f7436e161e5a02fb262 /Source/kwsys/Directory.cxx
parent6b05e028f1a3afc7906908bd48d58993da02a9d9 (diff)
parent7be70ca6cc888df532d2f1560e74d13642730ee5 (diff)
downloadCMake-16ebd9f6152fedd1804f13c91ed14e8963e53d3f.zip
CMake-16ebd9f6152fedd1804f13c91ed14e8963e53d3f.tar.gz
CMake-16ebd9f6152fedd1804f13c91ed14e8963e53d3f.tar.bz2
Merge branch 'upstream-KWSys' into update-kwsys
* upstream-KWSys: KWSys 2017-05-16 (fe1f22ce)
Diffstat (limited to 'Source/kwsys/Directory.cxx')
-rw-r--r--Source/kwsys/Directory.cxx7
1 files changed, 0 insertions, 7 deletions
diff --git a/Source/kwsys/Directory.cxx b/Source/kwsys/Directory.cxx
index 3c31b49..ca1cb18 100644
--- a/Source/kwsys/Directory.cxx
+++ b/Source/kwsys/Directory.cxx
@@ -20,7 +20,6 @@
namespace KWSYS_NAMESPACE {
-//----------------------------------------------------------------------------
class DirectoryInternals
{
public:
@@ -31,25 +30,21 @@ public:
std::string Path;
};
-//----------------------------------------------------------------------------
Directory::Directory()
{
this->Internal = new DirectoryInternals;
}
-//----------------------------------------------------------------------------
Directory::~Directory()
{
delete this->Internal;
}
-//----------------------------------------------------------------------------
unsigned long Directory::GetNumberOfFiles() const
{
return static_cast<unsigned long>(this->Internal->Files.size());
}
-//----------------------------------------------------------------------------
const char* Directory::GetFile(unsigned long dindex) const
{
if (dindex >= this->Internal->Files.size()) {
@@ -58,13 +53,11 @@ const char* Directory::GetFile(unsigned long dindex) const
return this->Internal->Files[dindex].c_str();
}
-//----------------------------------------------------------------------------
const char* Directory::GetPath() const
{
return this->Internal->Path.c_str();
}
-//----------------------------------------------------------------------------
void Directory::Clear()
{
this->Internal->Path.resize(0);