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

Method addEntriesFromFile

src/CvsIgnoreList.cpp:73–90  ·  view source on GitHub ↗

We don't have a real file in AUTOTEST mode */

Source from the content-addressed store, hash-verified

71 We don't have a real file in AUTOTEST mode
72*/
73void CvsIgnoreList::addEntriesFromFile(const QString& dir, const QString& name)
74{ //want unused warning when not building autotest
75#ifdef AUTOTEST
76 Q_UNUSED(name);
77 Q_UNUSED(dir);
78#else
79 QFile file(name);
80
81 if(file.open(QIODevice::ReadOnly))
82 {
83 QTextStream stream(&file);
84 while(!stream.atEnd())
85 {
86 addEntry(dir, stream.readLine());
87 }
88 }
89#endif
90}
91
92void CvsIgnoreList::addEntry(const QString& dir, const QString& pattern)
93{

Callers

nothing calls this directly

Calls 1

openMethod · 0.80

Tested by

no test coverage detected