From b648f11227054b1e029c202c2a996f359335a86b Mon Sep 17 00:00:00 2001 From: Marc Mutz Date: Thu, 28 Nov 2013 21:10:37 +0100 Subject: 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 Reviewed-by: Olivier Goffart Reviewed-by: Thiago Macieira --- src/widgets/graphicsview/qsimplex_p.cpp | 4 ++-- src/widgets/graphicsview/qsimplex_p.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src/widgets/graphicsview') diff --git a/src/widgets/graphicsview/qsimplex_p.cpp b/src/widgets/graphicsview/qsimplex_p.cpp index a2437d8ab1..cf023dc8f1 100644 --- a/src/widgets/graphicsview/qsimplex_p.cpp +++ b/src/widgets/graphicsview/qsimplex_p.cpp @@ -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); diff --git a/src/widgets/graphicsview/qsimplex_p.h b/src/widgets/graphicsview/qsimplex_p.h index 3fa3417eaf..8cb295e7ef 100644 --- a/src/widgets/graphicsview/qsimplex_p.h +++ b/src/widgets/graphicsview/qsimplex_p.h @@ -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 constraints; -- cgit v1.2.3