projects
/
pulseview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix random clazy warnings
[pulseview.git]
/
pv
/
views
/
trace
/
view.cpp
diff --git
a/pv/views/trace/view.cpp
b/pv/views/trace/view.cpp
index f1d7aa3dfca872a29bc81f5c0c2c444e4a34e03e..fa911f0b5ad92ae8a27c0f96b3d69de2de984aab 100644
(file)
--- a/
pv/views/trace/view.cpp
+++ b/
pv/views/trace/view.cpp
@@
-1215,7
+1215,8
@@
void View::set_scroll_default()
void View::determine_if_header_was_shrunk()
{
void View::determine_if_header_was_shrunk()
{
- const int header_pane_width = splitter_->sizes().front();
+ const int header_pane_width =
+ splitter_->sizes().front(); // clazy:exclude=detaching-temporary
// Allow for a slight margin of error so that we also accept
// slight differences when e.g. a label name change increased
// Allow for a slight margin of error so that we also accept
// slight differences when e.g. a label name change increased
@@
-1234,7
+1235,7
@@
void View::resize_header_to_fit()
// splitter to the maximum allowed position.
int splitter_area_width = 0;
// splitter to the maximum allowed position.
int splitter_area_width = 0;
- for (int w : splitter_->sizes())
+ for (int w : splitter_->sizes())
// clazy:exclude=range-loop
splitter_area_width += w;
// Make sure the header has enough horizontal space to show all labels fully
splitter_area_width += w;
// Make sure the header has enough horizontal space to show all labels fully