MCPcopy Create free account
hub / github.com/altairwei/WizNotePlus / readBooleanValue

Method readBooleanValue

lib/extensionsystem/pluginspec.cpp:750–759  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

748}
749
750bool PluginSpecPrivate::readBooleanValue(QXmlStreamReader &reader, const char *key)
751{
752 const QStringRef valueString = reader.attributes().value(QLatin1String(key));
753 const bool isOn = valueString.compare(QLatin1String("true"), Qt::CaseInsensitive) == 0;
754 if (!valueString.isEmpty() && !isOn
755 && valueString.compare(QLatin1String("false"), Qt::CaseInsensitive) != 0) {
756 reader.raiseError(msgInvalidFormat(key));
757 }
758 return isOn;
759}
760
761/*!
762 \internal

Callers

nothing calls this directly

Calls 3

msgInvalidFormatFunction · 0.85
isEmptyMethod · 0.80
compareMethod · 0.45

Tested by

no test coverage detected