remove trailing whitespaces (#23716)

pull/23718/head
Dean Lee 2022-02-07 02:42:41 +08:00 committed by GitHub
parent ee85e7026a
commit 786152f0f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 10 additions and 10 deletions

View File

@ -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

View File

@ -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();

View File

@ -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);

View File

@ -18,7 +18,7 @@ public:
protected:
struct Camera {
CameraType type;
VisionStreamType rgb_type;
VisionStreamType rgb_type;
VisionStreamType yuv_type;
int width;
int height;

View File

@ -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

View File

@ -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<std::tuple<int, int, TimelineType>> getTimeline() {
inline const std::vector<std::tuple<int, int, TimelineType>> getTimeline() {
std::lock_guard lk(timeline_lock);
return timeline;
return timeline;
}
signals:

View File

@ -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);

View File

@ -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;
};