summaryrefslogtreecommitdiffstats
path: root/src/XMLParser.h
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-12-05 12:56:53 +0100
committerMattes D <github@xoft.cz>2014-12-05 12:58:47 +0100
commit44644ae0254bf3659c0995575041e2f656f20398 (patch)
tree571528b0f4864c0dab826a4366b9ad40049960be /src/XMLParser.h
parentMerge pull request #1649 from jonfabe/InfoDumpFix (diff)
downloadcuberite-44644ae0254bf3659c0995575041e2f656f20398.tar
cuberite-44644ae0254bf3659c0995575041e2f656f20398.tar.gz
cuberite-44644ae0254bf3659c0995575041e2f656f20398.tar.bz2
cuberite-44644ae0254bf3659c0995575041e2f656f20398.tar.lz
cuberite-44644ae0254bf3659c0995575041e2f656f20398.tar.xz
cuberite-44644ae0254bf3659c0995575041e2f656f20398.tar.zst
cuberite-44644ae0254bf3659c0995575041e2f656f20398.zip
Diffstat (limited to '')
-rw-r--r--src/XMLParser.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/XMLParser.h b/src/XMLParser.h
index 5b53e55cf..dab9699c9 100644
--- a/src/XMLParser.h
+++ b/src/XMLParser.h
@@ -105,11 +105,11 @@ public:
Destroy ();
// If the encoding or seperator are empty, then nullptr
- if (pszEncoding != nullptr && pszEncoding [0] == 0)
+ if ((pszEncoding != nullptr) && (pszEncoding[0] == 0))
{
pszEncoding = nullptr;
}
- if (pszSep != nullptr && pszSep [0] == 0)
+ if ((pszSep != nullptr) && (pszSep[0] == 0))
{
pszSep = nullptr;
}
@@ -147,7 +147,7 @@ public:
bool Parse (const char *pszBuffer, int nLength, bool fIsFinal = true)
{
assert (m_p != nullptr);
- return XML_Parse (m_p, pszBuffer, nLength, fIsFinal) != 0;
+ return (XML_Parse (m_p, pszBuffer, nLength, fIsFinal) != 0);
}
// @cmember Parse internal buffer