summaryrefslogtreecommitdiffstats
path: root/Source/CPack/WiX/cmWIXSourceWriter.cxx
diff options
context:
space:
mode:
authorDavid Cole <david.cole@kitware.com>2012-12-04 19:37:41 (GMT)
committerDavid Cole <david.cole@kitware.com>2012-12-04 19:37:41 (GMT)
commita74bd470a4d01cfa06710d039bb435b02682ac3f (patch)
treefe47d14e7ad5fb6edfe993511ab6fa79d0276c56 /Source/CPack/WiX/cmWIXSourceWriter.cxx
parentad0f73573fcc59c7c428ef5e529f8fec6a1cfbe6 (diff)
downloadCMake-a74bd470a4d01cfa06710d039bb435b02682ac3f.zip
CMake-a74bd470a4d01cfa06710d039bb435b02682ac3f.tar.gz
CMake-a74bd470a4d01cfa06710d039bb435b02682ac3f.tar.bz2
CPack: Fix dashboard errors and warnings (#11575)
...revealed by the Nightly dashboard runs last night. Use "size_t" instead of "std::size_t" so that it compiles with Visual Studio 6, too. Fix warnings about shadowed "tmp" local variable and ordering of member variables vs. lines of code in the constructor initializer list.
Diffstat (limited to 'Source/CPack/WiX/cmWIXSourceWriter.cxx')
-rw-r--r--Source/CPack/WiX/cmWIXSourceWriter.cxx6
1 files changed, 3 insertions, 3 deletions
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)