We don't have a real file in AUTOTEST mode */
| 71 | We don't have a real file in AUTOTEST mode |
| 72 | */ |
| 73 | void 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 | |
| 92 | void CvsIgnoreList::addEntry(const QString& dir, const QString& pattern) |
| 93 | { |