diff options
author | Brad King <brad.king@kitware.com> | 2002-10-23 22:03:27 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2002-10-23 22:03:27 (GMT) |
commit | 1f6a3c67b1cc225f9f6873278c117820a2dee3b2 (patch) | |
tree | ec8ee490a7a800b5617f92ce56bb4a9124668ad3 /Source/cmSourceFile.cxx | |
parent | 48b74fd034c3acc27b96957d552715697156655c (diff) | |
download | CMake-1f6a3c67b1cc225f9f6873278c117820a2dee3b2.zip CMake-1f6a3c67b1cc225f9f6873278c117820a2dee3b2.tar.gz CMake-1f6a3c67b1cc225f9f6873278c117820a2dee3b2.tar.bz2 |
ENH: Added reference to Copyright.txt. Removed old reference to ITK copyright. Changed program name to CMake instead of Insight in source file header. Also removed tabs.
Diffstat (limited to 'Source/cmSourceFile.cxx')
-rw-r--r-- | Source/cmSourceFile.cxx | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/Source/cmSourceFile.cxx b/Source/cmSourceFile.cxx index 3c8a41d0..fa220e7 100644 --- a/Source/cmSourceFile.cxx +++ b/Source/cmSourceFile.cxx @@ -1,13 +1,13 @@ /*========================================================================= - Program: Insight Segmentation & Registration Toolkit + Program: CMake - Cross-Platform Makefile Generator Module: $RCSfile$ Language: C++ Date: $Date$ Version: $Revision$ - Copyright (c) 2002 Insight Consortium. All rights reserved. - See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details. + Copyright (c) 2002 Kitware, Inc., Insight Consortium. All rights reserved. + See Copyright.txt or http://www.cmake.org/HTML/Copyright.html for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR @@ -36,7 +36,7 @@ void cmSourceFile::SetName(const char* name, const char* dir, // the name might include the full path already, so // check for this case if (name && (name[0] == '/' || - (name[0] != '\0' && name[1] == ':'))) + (name[0] != '\0' && name[1] == ':'))) { pathname = ""; } @@ -58,13 +58,13 @@ void cmSourceFile::SetName(const char* name, const char* dir, m_SourceExtension = hname.substr(pos+1, hname.size()-pos); std::string::size_type pos2 = hname.rfind('/'); if(pos2 != std::string::npos) - { - m_SourceName = hname.substr(pos2+1, pos - pos2-1); - } + { + m_SourceName = hname.substr(pos2+1, pos - pos2-1); + } else - { - m_SourceName = hname.substr(0, pos); - } + { + m_SourceName = hname.substr(0, pos); + } } // See if the file is a header file @@ -163,8 +163,8 @@ void cmSourceFile::SetProperty(const char* prop, const char* value) } if (!value) { - value = "NOTFOUND"; - } + value = "NOTFOUND"; + } m_Properties[prop] = value; } |