[Scummvm-cvs-logs] SF.net SVN: scummvm:[42872] tools/branches/gsoc2009-gui

Remere at users.sourceforge.net Remere at users.sourceforge.net
Wed Jul 29 02:12:32 CEST 2009


Revision: 42872
          http://scummvm.svn.sourceforge.net/scummvm/?rev=42872&view=rev
Author:   Remere
Date:     2009-07-29 00:12:32 +0000 (Wed, 29 Jul 2009)

Log Message:
-----------
*Compiling fix.

Modified Paths:
--------------
    tools/branches/gsoc2009-gui/tools.cpp
    tools/branches/gsoc2009-gui/tools.h

Modified: tools/branches/gsoc2009-gui/tools.cpp
===================================================================
--- tools/branches/gsoc2009-gui/tools.cpp	2009-07-29 00:04:45 UTC (rev 42871)
+++ tools/branches/gsoc2009-gui/tools.cpp	2009-07-29 00:12:32 UTC (rev 42872)
@@ -86,17 +86,12 @@
 		delete *iter;
 }
 
-Tools::ToolList Tools::inspectInput(ToolType type, std::deque<std::string> files) const {
+Tools::ToolList Tools::inspectInput(ToolType type, const Filename &filename) const {
 	ToolList choices;
 	for (ToolList::const_iterator tool = _tools.begin(); tool != _tools.end(); ++tool) {
 		if (type == TOOLTYPE_ALL || (*tool)->getType() == type) {
-			if ((*tool)->_inputPaths.size() == files.size()) {
-				for (std::deque<std::string>::const_iterator filename = files.begin(); filename != files.end(); ++filename) {
-					if((*tool)->inspectInput(*filename)) {
-						choices.push_back(*tool);
-						break;
-					}
-				}
+			if((*tool)->inspectInput(filename)) {
+				choices.push_back(*tool);
 			}
 		}
 	}

Modified: tools/branches/gsoc2009-gui/tools.h
===================================================================
--- tools/branches/gsoc2009-gui/tools.h	2009-07-29 00:04:45 UTC (rev 42871)
+++ tools/branches/gsoc2009-gui/tools.h	2009-07-29 00:12:32 UTC (rev 42872)
@@ -43,7 +43,7 @@
 	 * Returns a list of the tools that supports opening the input file
 	 * specified in the input list.
 	 */
-	ToolList inspectInput(ToolType type, std::deque<std::string> files) const;
+	ToolList inspectInput(ToolType type, const Filename &filename) const;
 
 protected:
 	/** List of all tools */


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list