chore: refactor code

This commit is contained in:
arm64v8a
2022-11-08 08:54:13 +09:00
parent e88ec1c127
commit 99c6a41c49
26 changed files with 113 additions and 126 deletions

View File

@@ -5,10 +5,10 @@
#include "SocksHttpBean.hpp"
namespace NekoRay::fmt {
QString DisplayInsecureHint(const QSharedPointer<AbstractBean> &bean) {
QString AbstractBean::DisplayInsecureHint() {
if (!dataStore->insecure_hint) return {};
auto insecure_hint = bean->InsecureHint();
auto stream = GetStreamSettings(bean.data());
auto insecure_hint = InsecureHint();
auto stream = GetStreamSettings(this);
if (stream != nullptr) insecure_hint += "\n" + stream->InsecureHint();
return insecure_hint.trimmed();
}