[Scummvm-cvs-logs] SF.net SVN: scummvm:[46590] tools/branches/gsoc2009-gui/compress.cpp
sev at users.sourceforge.net
sev at users.sourceforge.net
Sat Dec 26 16:12:58 CET 2009
Revision: 46590
http://scummvm.svn.sourceforge.net/scummvm/?rev=46590&view=rev
Author: sev
Date: 2009-12-26 15:12:56 +0000 (Sat, 26 Dec 2009)
Log Message:
-----------
Remove reduntant checks. The parameters are unsigned.
Modified Paths:
--------------
tools/branches/gsoc2009-gui/compress.cpp
Modified: tools/branches/gsoc2009-gui/compress.cpp
===================================================================
--- tools/branches/gsoc2009-gui/compress.cpp 2009-12-26 15:03:55 UTC (rev 46589)
+++ tools/branches/gsoc2009-gui/compress.cpp 2009-12-26 15:12:56 UTC (rev 46590)
@@ -727,9 +727,6 @@
throw ToolException("Could not parse command line options, expected value after -V");
encparms.vbrqual = atoi(_arguments.front().c_str());
- if (encparms.vbrqual < 0)
- throw ToolException("Quality (-q) out of bounds, must be between 0 and 9.");
-
if (encparms.vbrqual > 9)
throw ToolException("Quality (-q) out of bounds, must be between 0 and 9.");
@@ -740,9 +737,6 @@
throw ToolException("Could not parse command line options, expected value after -q");
encparms.algqual = atoi(_arguments.front().c_str());
- if (encparms.algqual < 0)
- throw ToolException("Quality (-q) out of bounds, must be between 0 and 9.");
-
if (encparms.algqual > 9)
throw ToolException("Quality (-q) out of bounds, must be between 0 and 9.");
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