mirror of
https://projects.vdr-developer.org/git/vdr-plugin-skindesigner.git
synced 2023-10-19 17:58:31 +02:00
Fix Fehler: Aufruf des überladenen »min(int&, int&)« ist nicht eindeutig
This commit is contained in:
parent
a7fc762b3d
commit
9b63e8327f
@ -1332,7 +1332,7 @@ int cFuncLoop::FuncWidth(void) {
|
||||
eOverflowType overflow = (eOverflowType)GetValue((int)eLoopAttribs::overflow);
|
||||
if (overflow == eOverflowType::cut) {
|
||||
int maxItems = GetValue((int)eLoopAttribs::maxitems);
|
||||
numLoops = min(numLoops, maxItems);
|
||||
numLoops = std::min(numLoops, maxItems);
|
||||
}
|
||||
if (numLoops > 0)
|
||||
return numLoops * columnWidth;
|
||||
@ -1357,7 +1357,7 @@ int cFuncLoop::FuncHeight(void) {
|
||||
eOverflowType overflow = (eOverflowType)GetValue((int)eLoopAttribs::overflow);
|
||||
if (overflow == eOverflowType::cut) {
|
||||
int maxItems = GetValue((int)eLoopAttribs::maxitems);
|
||||
numLoops = min(numLoops, maxItems);
|
||||
numLoops = std::min(numLoops, maxItems);
|
||||
} else if (overflow == eOverflowType::wrap) {
|
||||
int loopWidth = Width();
|
||||
if (loopWidth <= 0)
|
||||
|
@ -970,7 +970,7 @@ bool cVeDmLastrecordings::Parse(bool forced) {
|
||||
|
||||
int MAX_RECORDINGS = 10;
|
||||
int availableRecordings = orderedRecs.size();
|
||||
int numRecordings = min(MAX_RECORDINGS, availableRecordings);
|
||||
int numRecordings = std::min(MAX_RECORDINGS, availableRecordings);
|
||||
if (!numRecordings)
|
||||
return true;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user