From b7d6d1c4f31035a5d2d93149d8119a0e127abc46 Mon Sep 17 00:00:00 2001 From: OEOTYAN Date: Thu, 4 Apr 2024 15:55:31 +0800 Subject: [PATCH] refactor: remove explicit --- .gitignore | 2 ++ .../kotlin/com/liteldev/headeroutput/data/MemberTypeData.kt | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index a3c6b25..af1290c 100644 --- a/.gitignore +++ b/.gitignore @@ -26,6 +26,8 @@ gradle-app.setting # vscode .vscode +bin + # HeaderOutput files /header/ /originalData*.json diff --git a/src/main/kotlin/com/liteldev/headeroutput/data/MemberTypeData.kt b/src/main/kotlin/com/liteldev/headeroutput/data/MemberTypeData.kt index 9d33bae..80209b2 100644 --- a/src/main/kotlin/com/liteldev/headeroutput/data/MemberTypeData.kt +++ b/src/main/kotlin/com/liteldev/headeroutput/data/MemberTypeData.kt @@ -74,8 +74,6 @@ data class MemberTypeData( else append("MCAPI ") if (!(isPtrCall() || isVirtual() || namespace)) append("static ") - if ((isConstructor() && !isCopyConstructor() && !isMoveConstructor() && params.size == 1) || isConversionOperator()) - append("explicit ") if (isFunctionPtr) append("auto ") else if (valType.name != "") append("${valType.name} ") append("$name(${paramsString})")