diff --git a/selfdrive/common/clutil.cc b/selfdrive/common/clutil.cc index 313978525e..4e952a2a88 100644 --- a/selfdrive/common/clutil.cc +++ b/selfdrive/common/clutil.cc @@ -49,7 +49,7 @@ void cl_print_build_errors(cl_program program, cl_device_id device) { std::string log(log_size, '\0'); clGetProgramBuildInfo(program, device, CL_PROGRAM_BUILD_LOG, log_size, &log[0], NULL); - std::cout << "build failed; status=" << status << ", log:" << std::endl << log << std::endl; + std::cout << "build failed; status=" << status << ", log:" << std::endl << log << std::endl; } } // namespace diff --git a/selfdrive/ui/qt/widgets/cameraview.cc b/selfdrive/ui/qt/widgets/cameraview.cc index a16923894d..fbd425b025 100644 --- a/selfdrive/ui/qt/widgets/cameraview.cc +++ b/selfdrive/ui/qt/widgets/cameraview.cc @@ -299,12 +299,12 @@ void CameraViewWidget::vipcThread() { std::lock_guard lk(lock); if (!Hardware::EON()) { void *texture_buffer = gl_buffer->map(QOpenGLBuffer::WriteOnly); - + if (texture_buffer == nullptr) { LOGE("gl_buffer->map returned nullptr"); continue; } - + memcpy(texture_buffer, buf->addr, buf->len); gl_buffer->unmap(); diff --git a/selfdrive/ui/qt/widgets/controls.cc b/selfdrive/ui/qt/widgets/controls.cc index d4e48fc64f..89c95843fb 100644 --- a/selfdrive/ui/qt/widgets/controls.cc +++ b/selfdrive/ui/qt/widgets/controls.cc @@ -19,7 +19,7 @@ QFrame *horizontal_line(QWidget *parent) { AbstractControl::AbstractControl(const QString &title, const QString &desc, const QString &icon, QWidget *parent) : QFrame(parent) { setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Minimum); - + QVBoxLayout *main_layout = new QVBoxLayout(this); main_layout->setMargin(0); diff --git a/selfdrive/ui/replay/camera.h b/selfdrive/ui/replay/camera.h index 21e02292d5..340a120e8c 100644 --- a/selfdrive/ui/replay/camera.h +++ b/selfdrive/ui/replay/camera.h @@ -18,7 +18,7 @@ public: protected: struct Camera { CameraType type; - VisionStreamType rgb_type; + VisionStreamType rgb_type; VisionStreamType yuv_type; int width; int height; diff --git a/selfdrive/ui/replay/logreader.h b/selfdrive/ui/replay/logreader.h index 33d7ea82f2..7ada20605e 100644 --- a/selfdrive/ui/replay/logreader.h +++ b/selfdrive/ui/replay/logreader.h @@ -34,7 +34,7 @@ public: return mbr->allocate(size); } void operator delete(void *ptr) { - // No-op. memory used by EventMemoryPool increases monotonically until the logReader is destroyed. + // No-op. memory used by EventMemoryPool increases monotonically until the logReader is destroyed. } #endif diff --git a/selfdrive/ui/replay/replay.h b/selfdrive/ui/replay/replay.h index 0fc171ba2d..d20d5bb920 100644 --- a/selfdrive/ui/replay/replay.h +++ b/selfdrive/ui/replay/replay.h @@ -52,9 +52,9 @@ public: inline int toSeconds(uint64_t mono_time) const { return (mono_time - route_start_ts_) / 1e9; } inline int totalSeconds() const { return segments_.size() * 60; } inline const std::string &carFingerprint() const { return car_fingerprint_; } - inline const std::vector> getTimeline() { + inline const std::vector> getTimeline() { std::lock_guard lk(timeline_lock); - return timeline; + return timeline; } signals: diff --git a/selfdrive/ui/replay/util.cc b/selfdrive/ui/replay/util.cc index 513cd965be..5f06a6c834 100644 --- a/selfdrive/ui/replay/util.cc +++ b/selfdrive/ui/replay/util.cc @@ -225,7 +225,7 @@ bool httpDownload(const std::string &url, T &buf, size_t chunk_size, size_t cont bool success = complete == parts; download_stats.update(url, written, success); download_stats.remove(url); - + for (const auto &[e, w] : writers) { curl_multi_remove_handle(cm, e); curl_easy_cleanup(e); diff --git a/selfdrive/ui/ui.h b/selfdrive/ui/ui.h index bc15257a08..dc7f7c697b 100644 --- a/selfdrive/ui/ui.h +++ b/selfdrive/ui/ui.h @@ -115,7 +115,7 @@ class UIState : public QObject { public: UIState(QObject* parent = 0); void updateStatus(); - inline bool worldObjectsVisible() const { + inline bool worldObjectsVisible() const { return sm->rcv_frame("liveCalibration") > scene.started_frame; };