inline void stringListFromFlList(QStringList& sl, const FileLocationList& fll) { FileLocationList* pList; FileLocation* pLoc; QString sLoc; // Nasty... pList = (FileLocationList*)&fll; sl.clear(); // Turn the object list into a string list, so that it can be written in // the configuration file for (pLoc = pList->first(); pLoc != NULL; pLoc = pList->next()) { sLoc = ""; QTextOStream(&sLoc) << pLoc->m_sPath << ":" << pLoc->m_nLine << ":" << pLoc->m_nCol; sl.append(sLoc); } }