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
KIdentityManagement
Commits
823fa374
Commit
823fa374
authored
Aug 22, 2021
by
Laurent Montel
😁
Browse files
Const'ify variable + use explicit
parent
c07b46bd
Pipeline
#76066
passed with stage
in 4 minutes and 31 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/signatureconfigurator.cpp
View file @
823fa374
...
...
@@ -52,7 +52,7 @@ namespace KIdentityManagement
class
Q_DECL_HIDDEN
SignatureConfigurator
::
Private
{
public:
Private
(
SignatureConfigurator
*
parent
);
explicit
Private
(
SignatureConfigurator
*
parent
);
void
init
();
// Returns the current text of the textedit as HTML code, but strips
// unnecessary tags Qt inserts
...
...
@@ -85,7 +85,7 @@ QString SignatureConfigurator::Private::asCleanedHTML() const
// Beautiful little hack to find the html headers produced by Qt.
QTextDocument
textDocument
;
QString
html
=
textDocument
.
toHtml
();
const
QString
html
=
textDocument
.
toHtml
();
// Now remove each line from the text, the result is clean html.
const
QStringList
lst
=
html
.
split
(
QLatin1Char
(
'\n'
));
...
...
src/utils.cpp
View file @
823fa374
...
...
@@ -23,7 +23,7 @@ public:
slotIdentitiesChanged
();
}
const
QSet
<
QString
>
&
emails
()
const
QSet
<
QString
>
&
emails
()
const
{
return
mEmails
;
}
...
...
Write
Preview
Supports
Markdown
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