Ticket #8729: 3_remove_redundant_parameter.patch
File 3_remove_redundant_parameter.patch, 1.9 KB (added by , 17 years ago) |
---|
-
common/fs.h
240 240 * are scanned before going into subdirectories. 241 241 * 242 242 * @param results List to put the matches in. 243 * @param dir Directory to search within.244 243 * @param pattern Pattern of the files to look for. 245 244 * @param hidden Whether to search hidden files or not. 246 245 * @param exhaustive Whether to continue searching after one match has been found. 247 246 * 248 247 * @return true if matches could be found, false otherwise. 249 248 */ 250 virtual bool lookupFile(FSList &results, FilesystemNode &dir,Common::String &pattern, bool hidden, bool exhaustive) const;249 virtual bool lookupFile(FSList &results, Common::String &pattern, bool hidden, bool exhaustive) const; 251 250 252 251 protected: 253 252 /** -
common/fs.cpp
183 183 return ((matches > 0) ? true : false); 184 184 } 185 185 186 bool FilesystemNode::lookupFile(FSList &results, FilesystemNode &dir,Common::String &pattern, bool hidden, bool exhaustive) const {186 bool FilesystemNode::lookupFile(FSList &results, Common::String &pattern, bool hidden, bool exhaustive) const { 187 187 int matches; 188 188 189 if (! dir.isDirectory())189 if (!isDirectory()) 190 190 return false; 191 191 192 FilesystemNode dir = *this; 192 193 matches = lookupFileRec(results, dir, pattern, hidden, exhaustive); 193 194 194 195 return ((matches > 0) ? true : false); -
backends/saves/default/default-saves.cpp
119 119 Common::StringList results; 120 120 Common::String search(regex); 121 121 122 if (savePath.lookupFile(savefiles, s avePath, search, false, true)) {122 if (savePath.lookupFile(savefiles, search, false, true)) { 123 123 for (FSList::const_iterator file = savefiles.begin(); file != savefiles.end(); file++) { 124 124 results.push_back(file->getPath()); 125 125 }