summaryrefslogtreecommitdiff
path: root/zenXml/zenxml/xml.h
diff options
context:
space:
mode:
authorDaniel Wilhelm <shieldwed@outlook.com>2020-03-20 22:34:51 +0000
committerDaniel Wilhelm <shieldwed@outlook.com>2020-03-20 22:34:51 +0000
commit543ddcd795ba2fa44676b59135a745f51f28a8da (patch)
tree5c378aa54f4bb65c081cf9a92530d8af1f1f53dd /zenXml/zenxml/xml.h
parentMerge branch '10.20' into 'master' (diff)
parentadd upstream 10.21 (diff)
downloadFreeFileSync-543ddcd795ba2fa44676b59135a745f51f28a8da.tar.gz
FreeFileSync-543ddcd795ba2fa44676b59135a745f51f28a8da.tar.bz2
FreeFileSync-543ddcd795ba2fa44676b59135a745f51f28a8da.zip
Merge branch '10.21' into 'master'10.21
add upstream 10.21 See merge request opensource-tracking/FreeFileSync!18
Diffstat (limited to 'zenXml/zenxml/xml.h')
-rw-r--r--zenXml/zenxml/xml.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/zenXml/zenxml/xml.h b/zenXml/zenxml/xml.h
index 80b60730..4058f7bf 100644
--- a/zenXml/zenxml/xml.h
+++ b/zenXml/zenxml/xml.h
@@ -369,8 +369,8 @@ public:
{
std::vector<String> output;
- for (const std::string& str : log_.ref().elementList())
- output.push_back(utfTo<String>(str));
+ for (const std::string& str : log_.ref().elementList())
+ output.push_back(utfTo<String>(str));
return output;
}
@@ -382,7 +382,7 @@ private:
static std::string getNameFormatted(const XmlElement& elem) //"<Root> <Level1> <Level2>"
{
- return (elem.parent() ? getNameFormatted(*elem.parent()) + " " : std::string()) + "<" + elem.getNameAs<std::string>() + ">";
+ return (elem.parent() ? getNameFormatted(*elem.parent()) + ' ' : std::string()) + '<' + elem.getNameAs<std::string>() + '>';
}
std::string getNameFormatted() const
@@ -399,7 +399,7 @@ private:
std::string getChildNameFormatted(const std::string& childName) const
{
std::string parentName = getNameFormatted();
- return (parentName.empty() ? std::string() : (parentName + " ")) + "<" + childName + ">";
+ return (parentName.empty() ? std::string() : (parentName + ' ')) + '<' + childName + '>';
}
class ErrorLog
@@ -440,9 +440,9 @@ void checkXmlMappingErrors(const XmlIn& xmlInput, const Zstring& filePath) //thr
{
if (xmlInput.haveErrors())
{
- std::wstring msg = _("The following XML elements could not be read:") + L"\n";
+ std::wstring msg = _("The following XML elements could not be read:") + L'\n';
for (const std::wstring& elem : xmlInput.getErrorsAs<std::wstring>())
- msg += L"\n" + elem;
+ msg += L'\n' + elem;
throw FileError(replaceCpy(_("Configuration file %x is incomplete. The missing elements will be set to their default values."), L"%x", fmtPath(filePath)) + L"\n\n" + msg);
}
bgstack15