summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
Diffstat (limited to 'Source')
-rw-r--r--Source/CPack/WiX/cmCPackWIXGenerator.cxx22
-rw-r--r--Source/CPack/WiX/cmCPackWIXGenerator.h4
-rw-r--r--Source/CPack/WiX/cmWIXRichTextFormatWriter.cxx2
-rw-r--r--Source/CPack/WiX/cmWIXSourceWriter.cxx6
-rw-r--r--Source/CPack/WiX/cmWIXSourceWriter.h8
5 files changed, 21 insertions, 21 deletions
diff --git a/Source/CPack/WiX/cmCPackWIXGenerator.cxx b/Source/CPack/WiX/cmCPackWIXGenerator.cxx
index 68ca60e..8b58625 100644
--- a/Source/CPack/WiX/cmCPackWIXGenerator.cxx
+++ b/Source/CPack/WiX/cmCPackWIXGenerator.cxx
@@ -185,7 +185,7 @@ bool cmCPackWIXGenerator::PackageFilesImpl()
}
std::stringstream objectFiles;
- for(std::size_t i = 0; i < wixSources.size(); ++i)
+ for(size_t i = 0; i < wixSources.size(); ++i)
{
const std::string& sourceFilename = wixSources[i];
@@ -290,7 +290,7 @@ bool cmCPackWIXGenerator::CreateWiXSourceFiles()
install_root.pop_back();
}
- for(std::size_t i = 1; i < install_root.size(); ++i)
+ for(size_t i = 1; i < install_root.size(); ++i)
{
directoryDefinitions.BeginElement("Directory");
@@ -300,16 +300,16 @@ bool cmCPackWIXGenerator::CreateWiXSourceFiles()
}
else
{
- std::stringstream tmp;
- tmp << "INSTALL_PREFIX_" << i;
- directoryDefinitions.AddAttribute("Id", tmp.str());
+ std::stringstream ss;
+ ss << "INSTALL_PREFIX_" << i;
+ directoryDefinitions.AddAttribute("Id", ss.str());
}
directoryDefinitions.AddAttribute("Name", install_root[i]);
}
- std::size_t directoryCounter = 0;
- std::size_t fileCounter = 0;
+ size_t directoryCounter = 0;
+ size_t fileCounter = 0;
std::string fileDefinitionsFilename =
cpackTopLevel + "/files.wxs";
@@ -345,7 +345,7 @@ bool cmCPackWIXGenerator::CreateWiXSourceFiles()
featureDefinitions.EndElement();
fileDefinitions.EndElement();
- for(std::size_t i = 1; i < install_root.size(); ++i)
+ for(size_t i = 1; i < install_root.size(); ++i)
{
directoryDefinitions.EndElement();
}
@@ -431,13 +431,13 @@ void cmCPackWIXGenerator::AddDirectoryAndFileDefinitons(
cmWIXSourceWriter& directoryDefinitions,
cmWIXSourceWriter& fileDefinitions,
cmWIXSourceWriter& featureDefinitions,
- std::size_t& directoryCounter,
- std::size_t& fileCounter)
+ size_t& directoryCounter,
+ size_t& fileCounter)
{
cmsys::Directory dir;
dir.Load(topdir.c_str());
- for(std::size_t i = 0; i < dir.GetNumberOfFiles(); ++i)
+ for(size_t i = 0; i < dir.GetNumberOfFiles(); ++i)
{
std::string fileName = dir.GetFile(static_cast<unsigned long>(i));
diff --git a/Source/CPack/WiX/cmCPackWIXGenerator.h b/Source/CPack/WiX/cmCPackWIXGenerator.h
index 9fc9093..0e95d70 100644
--- a/Source/CPack/WiX/cmCPackWIXGenerator.h
+++ b/Source/CPack/WiX/cmCPackWIXGenerator.h
@@ -82,8 +82,8 @@ private:
cmWIXSourceWriter& directoryDefinitions,
cmWIXSourceWriter& fileDefinitions,
cmWIXSourceWriter& featureDefinitions,
- std::size_t& directoryCounter,
- std::size_t& fileCounter);
+ size_t& directoryCounter,
+ size_t& fileCounter);
bool RequireOption(const std::string& name, std::string& value) const;
diff --git a/Source/CPack/WiX/cmWIXRichTextFormatWriter.cxx b/Source/CPack/WiX/cmWIXRichTextFormatWriter.cxx
index 0763344..774c22c 100644
--- a/Source/CPack/WiX/cmWIXRichTextFormatWriter.cxx
+++ b/Source/CPack/WiX/cmWIXRichTextFormatWriter.cxx
@@ -37,7 +37,7 @@ void cmWIXRichTextFormatWriter::AddText(const std::string& text)
{
typedef unsigned char rtf_byte_t;
- for(std::size_t i = 0; i < text.size(); ++i)
+ for(size_t i = 0; i < text.size(); ++i)
{
rtf_byte_t c = rtf_byte_t(text[i]);
diff --git a/Source/CPack/WiX/cmWIXSourceWriter.cxx b/Source/CPack/WiX/cmWIXSourceWriter.cxx
index b890ccd..af7ba80 100644
--- a/Source/CPack/WiX/cmWIXSourceWriter.cxx
+++ b/Source/CPack/WiX/cmWIXSourceWriter.cxx
@@ -150,9 +150,9 @@ void cmWIXSourceWriter::WriteXMLDeclaration()
file << "<?xml version=\"1.0\" encoding=\"UTF-8\"?>" << std::endl;
}
-void cmWIXSourceWriter::Indent(std::size_t count)
+void cmWIXSourceWriter::Indent(size_t count)
{
- for(std::size_t i = 0; i < count; ++i)
+ for(size_t i = 0; i < count; ++i)
{
file << " ";
}
@@ -165,7 +165,7 @@ std::string cmWIXSourceWriter::EscapeAttributeValue(
result.reserve(value.size());
char c = 0;
- for(std::size_t i = 0 ; i < value.size(); ++i)
+ for(size_t i = 0 ; i < value.size(); ++i)
{
c = value[i];
switch(c)
diff --git a/Source/CPack/WiX/cmWIXSourceWriter.h b/Source/CPack/WiX/cmWIXSourceWriter.h
index 582554d..1dafc1f 100644
--- a/Source/CPack/WiX/cmWIXSourceWriter.h
+++ b/Source/CPack/WiX/cmWIXSourceWriter.h
@@ -51,17 +51,17 @@ private:
void WriteXMLDeclaration();
- void Indent(std::size_t count);
+ void Indent(size_t count);
static std::string EscapeAttributeValue(const std::string& value);
- std::ofstream file;
+ cmCPackLog* Logger;
- std::vector<std::string> elements;
+ std::ofstream file;
State state;
- cmCPackLog* Logger;
+ std::vector<std::string> elements;
};
#endif