From 13f9fe4cd72a2cadc01a7928bc199db19302db8c Mon Sep 17 00:00:00 2001 From: Jon Beniston Date: Fri, 31 Jul 2026 15:57:06 +0100 Subject: [PATCH] Remove unused variables and support port 65535. --- plugins/feature/ais/aissettings.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/plugins/feature/ais/aissettings.cpp b/plugins/feature/ais/aissettings.cpp index 31a51d24d..526b16ba2 100644 --- a/plugins/feature/ais/aissettings.cpp +++ b/plugins/feature/ais/aissettings.cpp @@ -102,8 +102,6 @@ bool AISSettings::deserialize(const QByteArray& data) { QByteArray bytetmp; uint32_t utmp; - QString strtmp; - QByteArray blob; d.readString(20, &m_title, "AIS"); d.readU32(21, &m_rgbColor, QColor(102, 0, 0).rgb()); @@ -111,7 +109,7 @@ bool AISSettings::deserialize(const QByteArray& data) d.readString(23, &m_reverseAPIAddress, "127.0.0.1"); d.readU32(24, &utmp, 0); - if ((utmp > 1023) && (utmp < 65535)) { + if ((utmp > 1023) && (utmp <= 65535)) { m_reverseAPIPort = utmp; } else { m_reverseAPIPort = 8888;