Remove use of cmsys_stl.
It is not needed.
This commit is contained in:
parent
098160d5f2
commit
421eadb45b
@ -26,7 +26,7 @@
|
|||||||
int main(int argc, char* argv[])
|
int main(int argc, char* argv[])
|
||||||
{
|
{
|
||||||
//if ( cmsys::SystemTools::FileExists(
|
//if ( cmsys::SystemTools::FileExists(
|
||||||
cmsys_stl::string cwd = cmsys::SystemTools::GetCurrentWorkingDirectory();
|
std::string cwd = cmsys::SystemTools::GetCurrentWorkingDirectory();
|
||||||
cmsys::ofstream ofs("/tmp/output.txt");
|
cmsys::ofstream ofs("/tmp/output.txt");
|
||||||
|
|
||||||
CFStringRef fileName;
|
CFStringRef fileName;
|
||||||
@ -66,7 +66,7 @@ int main(int argc, char* argv[])
|
|||||||
//dispose of the CF variable
|
//dispose of the CF variable
|
||||||
CFRelease(scriptFileURL);
|
CFRelease(scriptFileURL);
|
||||||
|
|
||||||
cmsys_stl::string fullScriptPath = reinterpret_cast<char*>(path);
|
std::string fullScriptPath = reinterpret_cast<char*>(path);
|
||||||
delete [] path;
|
delete [] path;
|
||||||
|
|
||||||
|
|
||||||
@ -75,10 +75,10 @@ int main(int argc, char* argv[])
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
cmsys_stl::string scriptDirectory = cmsys::SystemTools::GetFilenamePath(
|
std::string scriptDirectory = cmsys::SystemTools::GetFilenamePath(
|
||||||
fullScriptPath);
|
fullScriptPath);
|
||||||
ofs << fullScriptPath.c_str() << cmsys_ios::endl;
|
ofs << fullScriptPath.c_str() << cmsys_ios::endl;
|
||||||
cmsys_stl::vector<const char*> args;
|
std::vector<const char*> args;
|
||||||
args.push_back(fullScriptPath.c_str());
|
args.push_back(fullScriptPath.c_str());
|
||||||
int cc;
|
int cc;
|
||||||
for ( cc = 1; cc < argc; ++ cc )
|
for ( cc = 1; cc < argc; ++ cc )
|
||||||
|
@ -654,7 +654,7 @@ bool cmCPackNSISGenerator::GetListOfSubdirectories(const char* topdir,
|
|||||||
if (strcmp(dir.GetFile(static_cast<unsigned long>(fileNum)),".") &&
|
if (strcmp(dir.GetFile(static_cast<unsigned long>(fileNum)),".") &&
|
||||||
strcmp(dir.GetFile(static_cast<unsigned long>(fileNum)),".."))
|
strcmp(dir.GetFile(static_cast<unsigned long>(fileNum)),".."))
|
||||||
{
|
{
|
||||||
cmsys_stl::string fullPath = topdir;
|
std::string fullPath = topdir;
|
||||||
fullPath += "/";
|
fullPath += "/";
|
||||||
fullPath += dir.GetFile(static_cast<unsigned long>(fileNum));
|
fullPath += dir.GetFile(static_cast<unsigned long>(fileNum));
|
||||||
if(cmsys::SystemTools::FileIsDirectory(fullPath) &&
|
if(cmsys::SystemTools::FileIsDirectory(fullPath) &&
|
||||||
|
@ -2542,10 +2542,10 @@ bool cmCTestCoverageHandler::IntersectsFilter(LabelSet const& labels)
|
|||||||
}
|
}
|
||||||
|
|
||||||
std::vector<int> ids;
|
std::vector<int> ids;
|
||||||
cmsys_stl::set_intersection
|
std::set_intersection
|
||||||
(labels.begin(), labels.end(),
|
(labels.begin(), labels.end(),
|
||||||
this->LabelFilter.begin(), this->LabelFilter.end(),
|
this->LabelFilter.begin(), this->LabelFilter.end(),
|
||||||
cmsys_stl::back_inserter(ids));
|
std::back_inserter(ids));
|
||||||
return !ids.empty();
|
return !ids.empty();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -149,10 +149,10 @@ int main(int argc, char** argv)
|
|||||||
QStringList args = app.arguments();
|
QStringList args = app.arguments();
|
||||||
if(args.count() == 2)
|
if(args.count() == 2)
|
||||||
{
|
{
|
||||||
cmsys_stl::string filePath = cmSystemTools::CollapseFullPath(args[1].toLocal8Bit().data());
|
std::string filePath = cmSystemTools::CollapseFullPath(args[1].toLocal8Bit().data());
|
||||||
|
|
||||||
// check if argument is a directory containing CMakeCache.txt
|
// check if argument is a directory containing CMakeCache.txt
|
||||||
cmsys_stl::string buildFilePath =
|
std::string buildFilePath =
|
||||||
cmSystemTools::CollapseFullPath("CMakeCache.txt", filePath.c_str());
|
cmSystemTools::CollapseFullPath("CMakeCache.txt", filePath.c_str());
|
||||||
|
|
||||||
// check if argument is a CMakeCache.txt file
|
// check if argument is a CMakeCache.txt file
|
||||||
@ -163,7 +163,7 @@ int main(int argc, char** argv)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// check if argument is a directory containing CMakeLists.txt
|
// check if argument is a directory containing CMakeLists.txt
|
||||||
cmsys_stl::string srcFilePath =
|
std::string srcFilePath =
|
||||||
cmSystemTools::CollapseFullPath("CMakeLists.txt", filePath.c_str());
|
cmSystemTools::CollapseFullPath("CMakeLists.txt", filePath.c_str());
|
||||||
|
|
||||||
if(cmSystemTools::FileExists(buildFilePath.c_str()))
|
if(cmSystemTools::FileExists(buildFilePath.c_str()))
|
||||||
|
@ -669,7 +669,7 @@ void cmComputeLinkDepends::InferDependencies()
|
|||||||
for(++i; i != sets->end(); ++i)
|
for(++i; i != sets->end(); ++i)
|
||||||
{
|
{
|
||||||
DependSet intersection;
|
DependSet intersection;
|
||||||
cmsys_stl::set_intersection
|
std::set_intersection
|
||||||
(common.begin(), common.end(), i->begin(), i->end(),
|
(common.begin(), common.end(), i->begin(), i->end(),
|
||||||
std::inserter(intersection, intersection.begin()));
|
std::inserter(intersection, intersection.begin()));
|
||||||
common = intersection;
|
common = intersection;
|
||||||
@ -689,10 +689,10 @@ void cmComputeLinkDepends::CleanConstraintGraph()
|
|||||||
{
|
{
|
||||||
// Sort the outgoing edges for each graph node so that the
|
// Sort the outgoing edges for each graph node so that the
|
||||||
// original order will be preserved as much as possible.
|
// original order will be preserved as much as possible.
|
||||||
cmsys_stl::sort(i->begin(), i->end());
|
std::sort(i->begin(), i->end());
|
||||||
|
|
||||||
// Make the edge list unique.
|
// Make the edge list unique.
|
||||||
EdgeList::iterator last = cmsys_stl::unique(i->begin(), i->end());
|
EdgeList::iterator last = std::unique(i->begin(), i->end());
|
||||||
i->erase(last, i->end());
|
i->erase(last, i->end());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -71,7 +71,7 @@ static std::string fix_file_url_windows(const std::string& url)
|
|||||||
std::string ret = url;
|
std::string ret = url;
|
||||||
if(strncmp(url.c_str(), "file://", 7) == 0)
|
if(strncmp(url.c_str(), "file://", 7) == 0)
|
||||||
{
|
{
|
||||||
cmsys_stl::wstring wurl = cmsys::Encoding::ToWide(url);
|
std::wstring wurl = cmsys::Encoding::ToWide(url);
|
||||||
if(!wurl.empty())
|
if(!wurl.empty())
|
||||||
{
|
{
|
||||||
int mblen = WideCharToMultiByte(CP_ACP, 0, wurl.c_str(), -1,
|
int mblen = WideCharToMultiByte(CP_ACP, 0, wurl.c_str(), -1,
|
||||||
@ -1843,7 +1843,7 @@ bool cmFileCopier::InstallDirectory(const char* source,
|
|||||||
if(!(strcmp(dir.GetFile(fileNum), ".") == 0 ||
|
if(!(strcmp(dir.GetFile(fileNum), ".") == 0 ||
|
||||||
strcmp(dir.GetFile(fileNum), "..") == 0))
|
strcmp(dir.GetFile(fileNum), "..") == 0))
|
||||||
{
|
{
|
||||||
cmsys_stl::string fromPath = source;
|
std::string fromPath = source;
|
||||||
fromPath += "/";
|
fromPath += "/";
|
||||||
fromPath += dir.GetFile(fileNum);
|
fromPath += dir.GetFile(fileNum);
|
||||||
std::string toPath = destination;
|
std::string toPath = destination;
|
||||||
|
@ -195,12 +195,12 @@ struct cmFindLibraryHelper
|
|||||||
void RegexFromList(std::string& out, std::vector<std::string> const& in);
|
void RegexFromList(std::string& out, std::vector<std::string> const& in);
|
||||||
size_type GetPrefixIndex(std::string const& prefix)
|
size_type GetPrefixIndex(std::string const& prefix)
|
||||||
{
|
{
|
||||||
return cmsys_stl::find(this->Prefixes.begin(), this->Prefixes.end(),
|
return std::find(this->Prefixes.begin(), this->Prefixes.end(),
|
||||||
prefix) - this->Prefixes.begin();
|
prefix) - this->Prefixes.begin();
|
||||||
}
|
}
|
||||||
size_type GetSuffixIndex(std::string const& suffix)
|
size_type GetSuffixIndex(std::string const& suffix)
|
||||||
{
|
{
|
||||||
return cmsys_stl::find(this->Suffixes.begin(), this->Suffixes.end(),
|
return std::find(this->Suffixes.begin(), this->Suffixes.end(),
|
||||||
suffix) - this->Suffixes.begin();
|
suffix) - this->Suffixes.begin();
|
||||||
}
|
}
|
||||||
bool HasValidSuffix(std::string const& name);
|
bool HasValidSuffix(std::string const& name);
|
||||||
|
@ -2695,7 +2695,7 @@ bool cmSystemTools::RemoveRPath(std::string const& file, std::string* emsg,
|
|||||||
}
|
}
|
||||||
if(se_count == 2 && se[1]->IndexInSection < se[0]->IndexInSection)
|
if(se_count == 2 && se[1]->IndexInSection < se[0]->IndexInSection)
|
||||||
{
|
{
|
||||||
cmsys_stl::swap(se[0], se[1]);
|
std::swap(se[0], se[1]);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Get the size of the dynamic section header.
|
// Get the size of the dynamic section header.
|
||||||
|
@ -28,7 +28,7 @@ cmXMLSafe::cmXMLSafe(const char* s):
|
|||||||
}
|
}
|
||||||
|
|
||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
cmXMLSafe::cmXMLSafe(cmsys_stl::string const& s):
|
cmXMLSafe::cmXMLSafe(std::string const& s):
|
||||||
Data(s.c_str()),
|
Data(s.c_str()),
|
||||||
Size(static_cast<unsigned long>(s.length())),
|
Size(static_cast<unsigned long>(s.length())),
|
||||||
DoQuotes(true)
|
DoQuotes(true)
|
||||||
@ -43,7 +43,7 @@ cmXMLSafe& cmXMLSafe::Quotes(bool b)
|
|||||||
}
|
}
|
||||||
|
|
||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
cmsys_stl::string cmXMLSafe::str()
|
std::string cmXMLSafe::str()
|
||||||
{
|
{
|
||||||
cmsys_ios::ostringstream ss;
|
cmsys_ios::ostringstream ss;
|
||||||
ss << *this;
|
ss << *this;
|
||||||
|
@ -24,7 +24,7 @@ public:
|
|||||||
/** Construct with the data to be written. This assumes the data
|
/** Construct with the data to be written. This assumes the data
|
||||||
will exist for the duration of this object's life. */
|
will exist for the duration of this object's life. */
|
||||||
cmXMLSafe(const char* s);
|
cmXMLSafe(const char* s);
|
||||||
cmXMLSafe(cmsys_stl::string const& s);
|
cmXMLSafe(std::string const& s);
|
||||||
|
|
||||||
/** Specify whether to escape quotes too. This is needed when
|
/** Specify whether to escape quotes too. This is needed when
|
||||||
writing the content of an attribute value. By default quotes
|
writing the content of an attribute value. By default quotes
|
||||||
@ -32,7 +32,7 @@ public:
|
|||||||
cmXMLSafe& Quotes(bool b = true);
|
cmXMLSafe& Quotes(bool b = true);
|
||||||
|
|
||||||
/** Get the escaped data as a string. */
|
/** Get the escaped data as a string. */
|
||||||
cmsys_stl::string str();
|
std::string str();
|
||||||
private:
|
private:
|
||||||
char const* Data;
|
char const* Data;
|
||||||
unsigned long Size;
|
unsigned long Size;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user