From: <dhu...@us...> - 2007-01-10 20:14:38
|
Revision: 142 http://svn.sourceforge.net/qcell/?rev=142&view=rev Author: dhubleizh Date: 2007-01-10 12:14:34 -0800 (Wed, 10 Jan 2007) Log Message: ----------- - removed test stuff from GenericParserPlugin.cpp - deleted code moved to GenericParserPlugin from FQTParserPlugin Modified Paths: -------------- trunk/qcell/basesources/GenericParserPlugin.cpp trunk/qcell/parsers/FQT/FQTParserPlugin.cpp Modified: trunk/qcell/basesources/GenericParserPlugin.cpp =================================================================== --- trunk/qcell/basesources/GenericParserPlugin.cpp 2007-01-10 19:57:11 UTC (rev 141) +++ trunk/qcell/basesources/GenericParserPlugin.cpp 2007-01-10 20:14:34 UTC (rev 142) @@ -8,27 +8,6 @@ #include "../baseheaders/GenericParserPlugin.h" -//QStringList GenericParserPlugin::parserTypes() -//{ -// return supported_parser_types; -//} -// -//QStringList GenericParserPlugin::fileTypes(const QString type) -//{ -// if(supported_parser_types.contains(type)) -// { -// return supported_file_types; -// } -// else { -// qDebug(tr("The plugin type %1 is not supported by this plugin.") -// .arg(type) -// .toAscii() -// ); -// -// return QStringList(); -// } -//} - QString GenericParserPlugin::parse(const QByteArray content, const QString type, const QString subtype) { if(!supported_parser_types.contains(type)) @@ -73,10 +52,7 @@ } - QString s = realParser(content, type, subtype); - - return s; - + return realParser(content, type, subtype); } QByteArray GenericParserPlugin::parseOut(const QString content, const QString type, const QString subtype) Modified: trunk/qcell/parsers/FQT/FQTParserPlugin.cpp =================================================================== --- trunk/qcell/parsers/FQT/FQTParserPlugin.cpp 2007-01-10 19:57:11 UTC (rev 141) +++ trunk/qcell/parsers/FQT/FQTParserPlugin.cpp 2007-01-10 20:14:34 UTC (rev 142) @@ -264,22 +264,18 @@ /// @todo How the fuck set FQT function parameters eh? - //looknij to - - int test; - - switch(lf.getFunctonType()) - { + switch(lf.getFunctonType()) + { case LocalFunction::SUM_AND_SWITCH: - lf.setDefaultValue(0); - foreach(int sum, results.keys()) - { - test = results.value(sum).size(); - for(int i=0;i<results.value(sum).size();++i) - lf.setFunctionValue((results.value(sum))[i], sum, i); - } - break; - } + lf.setDefaultValue(0); + foreach(int sum, results.keys()) + { + for(int i=0;i<results.value(sum).size();++i) + lf.setFunctionValue((results.value(sum))[i], sum, i); + } + break; + } + return lf.toXmlString(); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |