update assert

This commit is contained in:
codeboss 2025-08-10 20:36:29 +08:00
parent f9baad79d4
commit 60b9820a54
1 changed files with 3 additions and 3 deletions

View File

@ -101,7 +101,7 @@ void TranslateBasic::removeDelegate(const QString& typeAlias)
} }
} }
assert("指定RuleName不合法" && 0); throw new BaseException("指定RuleName不合法");
} }
QList<QString> TranslateBasic::delegateAlias() const QList<QString> TranslateBasic::delegateAlias() const
@ -120,7 +120,7 @@ std::shared_ptr<ExtractDelegate> TranslateBasic::operator[](const QString& name)
if(ins->aliasName() == name) if(ins->aliasName() == name)
return ins; return ins;
assert("指定Name不存在" && 0); throw new BaseException(u8"指定Name不存在");
} }
void TranslateBasic::replaceDelegate(const QString& name, std::shared_ptr<ExtractDelegate> inst) void TranslateBasic::replaceDelegate(const QString& name, std::shared_ptr<ExtractDelegate> inst)
@ -133,7 +133,7 @@ void TranslateBasic::replaceDelegate(const QString& name, std::shared_ptr<Extrac
} }
} }
assert("指定Name不存在" && 0); throw new BaseException(u8"指定Name不存在");
} }
QHash<QString, std::shared_ptr<SizeProvider>> TranslateBasic::sizeProviderMap() const QHash<QString, std::shared_ptr<SizeProvider>> TranslateBasic::sizeProviderMap() const