Use std::min and std::max, not the misc versions.
This commit is contained in:
+2
-2
@@ -317,7 +317,7 @@ void Hyphenator::hyphenateSingleWord(core::Platform *platform,
|
||||
if (p) {
|
||||
for (int k = 0; p[k]; k++)
|
||||
points.set(i + k,
|
||||
lout::misc::max (points.get (i + k), p[k] - '0'));
|
||||
std::max (points.get (i + k), p[k] - '0'));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -352,7 +352,7 @@ void Hyphenator::hyphenateSingleWord(core::Platform *platform,
|
||||
}
|
||||
|
||||
// Examine the points to build the break point list.
|
||||
int n = lout::misc::min ((int)strlen (wordLc), points.size () - 2);
|
||||
int n = std::min ((int)strlen (wordLc), points.size () - 2);
|
||||
for (int i = 0; i < n; i++) {
|
||||
if (points.get(i + 2) % 2) {
|
||||
breakPos->increase ();
|
||||
|
||||
Reference in New Issue
Block a user