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
PimCommon
Commits
0cbeea43
Commit
0cbeea43
authored
Oct 02, 2020
by
Laurent Montel
😁
Browse files
Fix warning reported by cppcheck
parent
00cf0c66
Pipeline
#36241
passed with stage
in 39 minutes and 9 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/pimcommon/autocorrection/tests/autocorrection_gui.cpp
View file @
0cbeea43
...
...
@@ -88,8 +88,8 @@ void TextEditAutoCorrectionWidget::keyPressEvent(QKeyEvent *e)
AutocorrectionTestWidget
::
AutocorrectionTestWidget
(
QWidget
*
parent
)
:
QWidget
(
parent
)
,
mConfig
(
KSharedConfig
::
openConfig
(
QStringLiteral
(
"autocorrectionguirc"
)))
{
mConfig
=
KSharedConfig
::
openConfig
(
QStringLiteral
(
"autocorrectionguirc"
));
PimCommon
::
PimCommonSettings
::
self
()
->
setSharedConfig
(
mConfig
);
PimCommon
::
PimCommonSettings
::
self
()
->
load
();
...
...
src/pimcommonakonadi/acl/aclmanager.cpp
View file @
0cbeea43
...
...
@@ -262,9 +262,9 @@ public:
firstElement
=
false
;
}
else
{
if
(
mModel
->
insertRow
(
mModel
->
rowCount
()))
{
const
QModelIndex
index
=
mModel
->
index
(
mModel
->
rowCount
()
-
1
,
0
);
mModel
->
setData
(
index
,
KEmailAddress
::
extractEmailAddress
(
addr
),
AclModel
::
UserIdRole
);
mModel
->
setData
(
index
,
static_cast
<
int
>
(
dlg
.
permissions
()),
AclModel
::
PermissionsRole
);
const
QModelIndex
row
index
=
mModel
->
index
(
mModel
->
rowCount
()
-
1
,
0
);
mModel
->
setData
(
row
index
,
KEmailAddress
::
extractEmailAddress
(
addr
),
AclModel
::
UserIdRole
);
mModel
->
setData
(
row
index
,
static_cast
<
int
>
(
dlg
.
permissions
()),
AclModel
::
PermissionsRole
);
}
}
}
...
...
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