mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Fix warnings
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user