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

Method readNumEntry

src/common.cpp:247–258  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

245}
246
247qint32 ValueMap::readNumEntry(const QString& k, qint32 iDefault)
248{
249 qint32 ival = iDefault;
250 std::map<QString, QString>::iterator i = m_map.find(k);
251 if(i != m_map.end())
252 {
253 QString s = i->second;
254 ival = s.split(',')[0].toInt();
255 }
256
257 return ival;
258}
259
260QString ValueMap::readStringEntry(const QString& k, const QString& sDefault)
261{

Callers

nothing calls this directly

Calls 2

endMethod · 0.80
splitMethod · 0.80

Tested by

no test coverage detected