Fix warnings

This commit is contained in:
Vinnie Falco
2013-08-26 13:50:07 -07:00
parent 3c79ebda17
commit 5c2da08c13
11 changed files with 42 additions and 54 deletions

View File

@@ -204,7 +204,7 @@ namespace XmlOutputFunctions
}
}
static void writeSpaces (OutputStream& out, const int numSpaces)
static void writeSpaces (OutputStream& out, const size_t numSpaces)
{
out.writeRepeatedByte (' ', numSpaces);
}
@@ -217,7 +217,7 @@ void XmlElement::writeElementAsText (OutputStream& outputStream,
using namespace XmlOutputFunctions;
if (indentationLevel >= 0)
writeSpaces (outputStream, indentationLevel);
writeSpaces (outputStream, (size_t) indentationLevel);
if (! isTextElement())
{
@@ -225,7 +225,7 @@ void XmlElement::writeElementAsText (OutputStream& outputStream,
outputStream << tagName;
{
const int attIndent = indentationLevel + tagName.length() + 1;
const size_t attIndent = (size_t) (indentationLevel + tagName.length() + 1);
int lineLen = 0;
for (const XmlAttributeNode* att = attributes; att != nullptr; att = att->nextListItem)
@@ -274,7 +274,7 @@ void XmlElement::writeElementAsText (OutputStream& outputStream,
if (indentationLevel >= 0 && ! lastWasTextNode)
{
outputStream << newLine;
writeSpaces (outputStream, indentationLevel);
writeSpaces (outputStream, (size_t) indentationLevel);
}
outputStream.write ("</", 2);