spelling: successfully
This commit is contained in:
committed by
Janek Bevendorff
parent
10f03795f9
commit
af8e770106
@@ -178,7 +178,7 @@ bool KeePass2XmlReader::parseKeePassFile()
|
|||||||
Q_ASSERT(m_xml.isStartElement() && m_xml.name() == "KeePassFile");
|
Q_ASSERT(m_xml.isStartElement() && m_xml.name() == "KeePassFile");
|
||||||
|
|
||||||
bool rootElementFound = false;
|
bool rootElementFound = false;
|
||||||
bool rootParsedSuccesfully = false;
|
bool rootParsedSuccessfully = false;
|
||||||
|
|
||||||
while (!m_xml.error() && m_xml.readNextStartElement()) {
|
while (!m_xml.error() && m_xml.readNextStartElement()) {
|
||||||
if (m_xml.name() == "Meta") {
|
if (m_xml.name() == "Meta") {
|
||||||
@@ -186,11 +186,11 @@ bool KeePass2XmlReader::parseKeePassFile()
|
|||||||
}
|
}
|
||||||
else if (m_xml.name() == "Root") {
|
else if (m_xml.name() == "Root") {
|
||||||
if (rootElementFound) {
|
if (rootElementFound) {
|
||||||
rootParsedSuccesfully = false;
|
rootParsedSuccessfully = false;
|
||||||
raiseError("Multiple root elements");
|
raiseError("Multiple root elements");
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
rootParsedSuccesfully = parseRoot();
|
rootParsedSuccessfully = parseRoot();
|
||||||
rootElementFound = true;
|
rootElementFound = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -199,7 +199,7 @@ bool KeePass2XmlReader::parseKeePassFile()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return rootParsedSuccesfully;
|
return rootParsedSuccessfully;
|
||||||
}
|
}
|
||||||
|
|
||||||
void KeePass2XmlReader::parseMeta()
|
void KeePass2XmlReader::parseMeta()
|
||||||
@@ -458,12 +458,12 @@ bool KeePass2XmlReader::parseRoot()
|
|||||||
Q_ASSERT(m_xml.isStartElement() && m_xml.name() == "Root");
|
Q_ASSERT(m_xml.isStartElement() && m_xml.name() == "Root");
|
||||||
|
|
||||||
bool groupElementFound = false;
|
bool groupElementFound = false;
|
||||||
bool groupParsedSuccesfully = false;
|
bool groupParsedSuccessfully = false;
|
||||||
|
|
||||||
while (!m_xml.error() && m_xml.readNextStartElement()) {
|
while (!m_xml.error() && m_xml.readNextStartElement()) {
|
||||||
if (m_xml.name() == "Group") {
|
if (m_xml.name() == "Group") {
|
||||||
if (groupElementFound) {
|
if (groupElementFound) {
|
||||||
groupParsedSuccesfully = false;
|
groupParsedSuccessfully = false;
|
||||||
raiseError("Multiple group elements");
|
raiseError("Multiple group elements");
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
@@ -473,7 +473,7 @@ bool KeePass2XmlReader::parseRoot()
|
|||||||
Group* oldRoot = m_db->rootGroup();
|
Group* oldRoot = m_db->rootGroup();
|
||||||
m_db->setRootGroup(rootGroup);
|
m_db->setRootGroup(rootGroup);
|
||||||
delete oldRoot;
|
delete oldRoot;
|
||||||
groupParsedSuccesfully = true;
|
groupParsedSuccessfully = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
groupElementFound = true;
|
groupElementFound = true;
|
||||||
@@ -486,7 +486,7 @@ bool KeePass2XmlReader::parseRoot()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return groupParsedSuccesfully;
|
return groupParsedSuccessfully;
|
||||||
}
|
}
|
||||||
|
|
||||||
Group* KeePass2XmlReader::parseGroup()
|
Group* KeePass2XmlReader::parseGroup()
|
||||||
|
|||||||
Reference in New Issue
Block a user