diff --git a/src/platforms/posix/drivers/gpssim/gpssim.cpp b/src/platforms/posix/drivers/gpssim/gpssim.cpp index 034ced532f..b505c0d9b6 100644 --- a/src/platforms/posix/drivers/gpssim/gpssim.cpp +++ b/src/platforms/posix/drivers/gpssim/gpssim.cpp @@ -187,7 +187,7 @@ GPSSIM::GPSSIM(const char *uart_path, bool fake_gps, bool enable_sat_info) : /* create satellite info data object if requested */ if (enable_sat_info) { - _Sat_Info = new(GPS_Sat_Info); + _Sat_Info = new (GPS_Sat_Info); _p_report_sat_info = &_Sat_Info->_data; memset(_p_report_sat_info, 0, sizeof(*_p_report_sat_info)); } diff --git a/src/platforms/posix/tests/vcdev_test/vcdevtest_example.cpp b/src/platforms/posix/tests/vcdev_test/vcdevtest_example.cpp index b2fbe13c85..5a7c22d586 100644 --- a/src/platforms/posix/tests/vcdev_test/vcdevtest_example.cpp +++ b/src/platforms/posix/tests/vcdev_test/vcdevtest_example.cpp @@ -144,7 +144,7 @@ int VCDevNode::open(device::file_t *handlep) int VCDevNode::close(device::file_t *handlep) { - delete(PrivData *)handlep->priv; + delete (PrivData *)handlep->priv; handlep->priv = nullptr; VDev::close(handlep);