The following issues were found
src/ui/widgets/windows/w_MainWindow.cpp
1 issues
Line: 35
#define PLUGIN_BUTTON_PROPERTY_KEY "plugin_list_index"
QvMessageBusSlotImpl(MainWindow)
{
switch (msg)
{
MBShowDefaultImpl;
MBHideDefaultImpl;
Reported by Cppcheck.
src/ui/widgets/windows/w_PluginManager.cpp
1 issues
Line: 33
on_pluginListWidget_currentItemChanged(pluginListWidget->item(0), nullptr);
}
QvMessageBusSlotImpl(PluginManageWindow){ Q_UNUSED(msg) }
PluginManageWindow::~PluginManageWindow()
{
on_pluginListWidget_currentItemChanged(nullptr, nullptr);
}
Reported by Cppcheck.
src/ui/widgets/windows/w_PreferencesWindow.cpp
1 issues
Line: 776
}
#endif
if (const auto &&[result, msg] = V2RayKernelInstance::ValidateKernel(vcorePath, vAssetsPath); !result)
{
QvMessageBoxWarn(this, tr("V2Ray Core Settings"), *msg);
}
#if QV2RAY_FEATURE(kernel_check_output)
else if (!msg->toLower().contains("v2ray") && !msg->toLower().contains("xray"))
Reported by Cppcheck.
src/ui/widgets/editors/w_InboundEditor.cpp
1 issues
Line: 67
loadUI();
}
QvMessageBusSlotImpl(InboundEditor)
{
switch (msg)
{
MBShowDefaultImpl;
MBHideDefaultImpl;
Reported by Cppcheck.
src/components/latency/RealPing.cpp
1 issues
Line: 13
CWE codes:
665
{
std::shared_ptr<uvw::PollHandle> handle;
curl_socket_t sockfd;
RealPingContext(curl_socket_t sockfd, uvw::Loop &loop) : handle{ loop.resource<uvw::PollHandle>(uvw::OSSocketHandle{ sockfd }) }, sockfd{ sockfd }
{
}
};
struct RealPingGlobalInfo
{
Reported by Cppcheck.
src/plugins/protocols/BuiltinProtocolPlugin.hpp
1 issues
Line: 14
: public QObject
, public Qv2rayInterface
{
Q_INTERFACES(Qv2rayPlugin::Qv2rayInterface)
Q_PLUGIN_METADATA(IID Qv2rayInterface_IID)
Q_OBJECT
public:
//
// Basic metainfo of this plugin
Reported by Cppcheck.
src/plugins/protocols/ui/inbound/dokodemo-door.cpp
1 issues
Line: 82
CWE codes:
587
void DokodemoDoorInboundEditor::on_dokoFollowRedirectCB_stateChanged(int arg1)
{
PLUGIN_EDITOR_LOADING_GUARD
content["followRedirect"] = arg1 == Qt::Checked;
}
Reported by Cppcheck.
src/plugins/protocols/ui/inbound/httpin.cpp
1 issues
Line: 45
CWE codes:
587
void HTTPInboundEditor::on_httpTransparentCB_stateChanged(int arg1)
{
PLUGIN_EDITOR_LOADING_GUARD
content["allowTransparent"] = arg1 == Qt::Checked;
}
void HTTPInboundEditor::on_httpRemoveUserBtn_clicked()
{
PLUGIN_EDITOR_LOADING_GUARD
Reported by Cppcheck.
src/plugins/protocols/ui/inbound/socksin.cpp
1 issues
Line: 97
CWE codes:
587
void SocksInboundEditor::on_socksUDPCB_stateChanged(int arg1)
{
PLUGIN_EDITOR_LOADING_GUARD
content["udp"] = arg1 == Qt::Checked;
}
void SocksInboundEditor::on_socksUDPIPAddrTxt_textEdited(const QString &arg1)
{
PLUGIN_EDITOR_LOADING_GUARD
Reported by Cppcheck.
src/plugins/subscription-adapters/BuiltinSubscriptionAdapter.hpp
1 issues
Line: 14
: public QObject
, public Qv2rayInterface
{
Q_INTERFACES(Qv2rayPlugin::Qv2rayInterface)
Q_PLUGIN_METADATA(IID Qv2rayInterface_IID)
Q_OBJECT
public:
//
// Basic metainfo of this plugin
Reported by Cppcheck.