remove trailing whitespaces (#23716)
parent
ee85e7026a
commit
786152f0f1
|
@ -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
|
||||
|
|
|
@ -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();
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@ public:
|
|||
protected:
|
||||
struct Camera {
|
||||
CameraType type;
|
||||
VisionStreamType rgb_type;
|
||||
VisionStreamType rgb_type;
|
||||
VisionStreamType yuv_type;
|
||||
int width;
|
||||
int height;
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue