Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
KAlarm
Commits
1e2c4254
Commit
1e2c4254
authored
Mar 12, 2022
by
David Jarvie
Browse files
Suppress cppcheck warnings
parent
6131e797
Pipeline
#149201
failed with stage
in 43 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/lib/autoqpointer.h
View file @
1e2c4254
...
...
@@ -21,7 +21,7 @@ class AutoQPointer : public QPointer<T>
{
public:
AutoQPointer
()
=
default
;
AutoQPointer
(
T
*
p
)
:
QPointer
<
T
>
(
p
)
{}
AutoQPointer
(
T
*
p
)
:
QPointer
<
T
>
(
p
)
{}
//cppcheck-suppress noExplicitConstructor
AutoQPointer
(
const
QPointer
<
T
>&
p
)
:
QPointer
<
T
>
(
p
)
{}
~
AutoQPointer
()
{
delete
this
->
data
();
}
AutoQPointer
<
T
>&
operator
=
(
const
AutoQPointer
<
T
>&
p
)
{
QPointer
<
T
>::
operator
=
(
p
);
return
*
this
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment