int main () { QLinkedList<QString> list; list << "sun" << "cloud" << "sun" << "rain"; list.removeAll("sun"); assert(list.size() == 2); // list: ["cloud", "rain"] return 0; }
bool QxtFileLockRegistry::removeLock(QxtFileLock * lock) { QMutexLocker locker(&this->registryMutex); procLocks.removeAll(lock); return true; }