Changeset 1130 for cpp/frams/param
- Timestamp:
- 04/16/21 15:55:34 (4 years ago)
- Location:
- cpp/frams/param
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/frams/param/mutableparam.cpp
r973 r1130 1 1 // This file is a part of Framsticks SDK. http://www.framsticks.com/ 2 // Copyright (C) 1999-202 0Maciej Komosinski and Szymon Ulatowski.2 // Copyright (C) 1999-2021 Maciej Komosinski and Szymon Ulatowski. 3 3 // See LICENSE.txt for details. 4 4 … … 22 22 }; 23 23 #undef FIELDSTRUCT 24 const int MutableParam::staticprops = ARRAY_LENGTH(pe_tab);24 const int MutableParam::staticprops = std::size(pe_tab); 25 25 26 26 MutableParam::MutableParam(const char*n, const char*g, int gr0) -
cpp/frams/param/paramobj.cpp
r1051 r1130 1 1 // This file is a part of Framsticks SDK. http://www.framsticks.com/ 2 // Copyright (C) 1999-202 0Maciej Komosinski and Szymon Ulatowski.2 // Copyright (C) 1999-2021 Maciej Komosinski and Szymon Ulatowski. 3 3 // See LICENSE.txt for details. 4 4 5 5 #include <frams/param/paramobj.h> 6 6 #include <frams/util/extvalue.h> 7 #include < common/nonstd_stl.h>7 #include <algorithm> 8 8 9 9 static const char* maybedup(bool dup, const char* src) … … 232 232 const ExtValue *s = &src.fields[0]; 233 233 ExtValue *d = &fields[0]; 234 int n = min(numfields, src.numfields);234 int n = std::min(numfields, src.numfields); 235 235 for (int i = 0; i < n; i++, d++, s++) 236 236 *d = *s;
Note: See TracChangeset
for help on using the changeset viewer.