QSimplex: API cleanup [1/3]: Rename an enum

Enums should be named LikeThis, not likeThis, even in private API.

Change-Id: I197f9f888204a7c495364bd09357bfca24146560
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
bb10
Marc Mutz 2013-11-28 21:10:37 +01:00 committed by The Qt Project
parent 391a6627cd
commit b648f11227
2 changed files with 4 additions and 4 deletions

View File

@ -509,7 +509,7 @@ bool QSimplex::iterate()
Both solveMin and solveMax are interfaces to this method.
The enum solverFactor admits 2 values: Minimum (-1) and Maximum (+1).
The enum SolverFactor admits 2 values: Minimum (-1) and Maximum (+1).
This method sets the original objective and runs the second phase
Simplex to obtain the optimal solution for the problem. As the internal
@ -517,7 +517,7 @@ bool QSimplex::iterate()
minimization case by inverting the original objective and then
maximizing it.
*/
qreal QSimplex::solver(solverFactor factor)
qreal QSimplex::solver(SolverFactor factor)
{
// Remove old objective
clearRow(0);

View File

@ -180,8 +180,8 @@ private:
// Helpers
void clearDataStructures();
void solveMaxHelper();
enum solverFactor { Minimum = -1, Maximum = 1 };
qreal solver(solverFactor factor);
enum SolverFactor { Minimum = -1, Maximum = 1 };
qreal solver(SolverFactor factor);
void collectResults();
QList<QSimplexConstraint *> constraints;