Commit 823fa374 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Const'ify variable + use explicit

parent c07b46bd
Pipeline #76066 passed with stage
in 4 minutes and 31 seconds
......@@ -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'));
......
......@@ -23,7 +23,7 @@ public:
slotIdentitiesChanged();
}
const QSet<QString> &emails()
const QSet<QString> &emails() const
{
return mEmails;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment