Skip to content

Commit cee3369

Browse files
committed
fix: update plugify
1 parent e97287e commit cee3369

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/module.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1497,7 +1497,7 @@ namespace py3lm {
14971497
}
14981498

14991499
PyObject* ParamToEnumObject(const Property& paramType, const ParametersSpan& params, size_t index) {
1500-
const EnumObject& enumerator = *paramType.GetEnumerate();
1500+
const auto& enumerator = *paramType.GetEnumerate();
15011501
switch (paramType.GetType()) {
15021502
case ValueType::Int8:
15031503
return CreatePyEnumObject(enumerator, params.Get<int8_t>(index));
@@ -3043,10 +3043,10 @@ namespace py3lm {
30433043
void GenerateEnum(const Method& method, PyObject* moduleDict);
30443044

30453045
void GenerateEnum(const Property& paramType, PyObject* moduleDict) {
3046-
if (const auto* prototype = paramType.GetPrototype()) {
3046+
if (const auto prototype = paramType.GetPrototype()) {
30473047
GenerateEnum(*prototype, moduleDict);
30483048
}
3049-
if (const auto* enumerator = paramType.GetEnumerate()) {
3049+
if (const auto enumerator = paramType.GetEnumerate()) {
30503050
g_py3lm.CreateEnumObject(*enumerator, moduleDict);
30513051
}
30523052
}

0 commit comments

Comments
 (0)