Skip to content

Commit ea75e39

Browse files
authored
Merge pull request #1534 from tsteven4/redundant-member-init
minor tidy cleanups
2 parents 4e759e7 + 5c29469 commit ea75e39

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

kalman.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ void Kalman::process() {
342342
i++;
343343

344344
if (current_original_wpt->wpt_flags.marked_for_deletion) {
345-
auto extra_data = static_cast<KalmanExtraData*>(current_original_wpt->extra_data);
345+
auto* extra_data = static_cast<KalmanExtraData*>(current_original_wpt->extra_data);
346346
// FIXME: marked_for_deletion <==> is_zinger deletion.
347347
// Interpolate to estimate missing data, or alternatively just
348348
// let the kalman filter predict across the gap.

lowranceusr.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1743,7 +1743,7 @@ LowranceusrFormat::lowranceusr_merge_trail_hdr(const route_head* trk)
17431743
void
17441744
LowranceusrFormat::lowranceusr_merge_trail_tlr(const route_head* /*unused*/)
17451745
{
1746-
if (trail_count == (int)track_count()) { /* last trail */
1746+
if (trail_count == track_count()) { /* last trail */
17471747
short num_trail_points = trail_point_count;
17481748
short max_trail_size = MAX_TRAIL_POINTS;
17491749
if (num_trail_points > max_trail_size) {

mtk_logger.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ class MtkLoggerBase
217217

218218
void* fd{}; /* serial fd */
219219
FILE* fl{}; /* bin.file fd */
220-
QString port{}; /* serial port name */
220+
QString port; /* serial port name */
221221
OptionBool OPT_erase; /* erase ? command option */
222222
OptionBool OPT_erase_only; /* erase_only ? command option */
223223
OptionBool OPT_log_enable; /* enable ? command option */

src/core/nvector.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ class NVector : public Vector3D
8383
static LatLon crossTrackProjection(double latitude_a_degrees, double longitude_a_degrees, double latitude_b_degrees, double longitude_b_degrees, double latitude_x_degrees, double longitude_x_degrees);
8484
static double crossTrackDistance(const NVector& n_EA_E, const NVector& n_EB_E, const NVector& n_EX_E);
8585
static double crossTrackDistance(double latitude_a_degrees, double longitude_a_degrees, double latitude_b_degrees, double longitude_b_degrees, double latitude_x_degrees, double longitude_x_degrees);
86-
static double euclideanDistance(const NVector& a, const NVector& b);
86+
static double euclideanDistance(const NVector& n_EA_E, const NVector& n_EB_E);
8787
};
8888

8989
class PVector : public Vector3D

0 commit comments

Comments
 (0)