File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ padding::padding(
81
81
),
82
82
// clang-format on
83
83
params(std::move(padding_params)),
84
- inner_content(content_container.get( ))
84
+ inner_content(std::move(content_container ))
85
85
{}
86
86
87
87
sides<real> padding::get_min_borders () const noexcept
Original file line number Diff line number Diff line change @@ -40,9 +40,7 @@ class padding :
40
40
private:
41
41
parameters params;
42
42
43
- // TODO: use shared_ref?
44
- // NOLINTNEXTLINE(clang-analyzer-webkit.NoUncountedMemberChecker, "false-positive")
45
- container& inner_content;
43
+ utki::shared_ref<container> inner_content;
46
44
47
45
public:
48
46
struct all_parameters {
@@ -76,12 +74,12 @@ class padding :
76
74
*/
77
75
container& content ()
78
76
{
79
- return this ->inner_content ;
77
+ return this ->inner_content . get () ;
80
78
}
81
79
82
80
const container& content () const
83
81
{
84
- return this ->inner_content ;
82
+ return this ->inner_content . get () ;
85
83
}
86
84
87
85
/* *
You can’t perform that action at this time.
0 commit comments