diff options
author | Anselmo Lacerda S. de Melo <anselmo.melo@openbossa.org> | 2009-05-29 19:49:02 (GMT) |
---|---|---|
committer | Eduardo M. Fleury <eduardo.fleury@openbossa.org> | 2009-07-22 18:04:37 (GMT) |
commit | a3d7de451c005d76e6680a785195fab0f986c06c (patch) | |
tree | ea6ac21337865a9a9881fbe957deca2de1a2fcfe /doc/src/snippets/code | |
parent | 4424171fc41601831089b08d774813f3985ed5a7 (diff) | |
download | Qt-a3d7de451c005d76e6680a785195fab0f986c06c.zip Qt-a3d7de451c005d76e6680a785195fab0f986c06c.tar.gz Qt-a3d7de451c005d76e6680a785195fab0f986c06c.tar.bz2 |
QSimplex: new method solver, avoinding code replication
The methods solveMin() and solveMax() had similar implementation, except
by a "-1" multiplier. This commit includes a new private method called
solver that is called by both solveMin() and solveMax().
A new enum 'solverFactor' was added admiting 2 values - Maximum (+1)
and Minimum (-1).
Signed-off-by: Anselmo Lacerda S. de Melo <anselmo.melo@openbossa.org>
Diffstat (limited to 'doc/src/snippets/code')
0 files changed, 0 insertions, 0 deletions