MCPcopy Create free account
hub / github.com/KDE/kdiff3 / readBoolEntry

Method readBoolEntry

src/common.cpp:234–245  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

232}
233
234bool ValueMap::readBoolEntry(const QString& k, bool bDefault)
235{
236 bool b = bDefault;
237 std::map<QString, QString>::iterator i = m_map.find(k);
238 if(i != m_map.end())
239 {
240 QString s = i->second;
241 b = (s.split(',')[0].toInt() == 1);
242 }
243
244 return b;
245}
246
247qint32 ValueMap::readNumEntry(const QString& k, qint32 iDefault)
248{

Callers

nothing calls this directly

Calls 2

endMethod · 0.80
splitMethod · 0.80

Tested by

no test coverage detected