@@ -65,7 +65,7 @@ public:
65 cancelPam();
65 cancelPam();
68− void start(QString &username)
68+ void start(const QString &username)
70 // Clear out any existing PAM interactions first
70 // Clear out any existing PAM interactions first
71 cancelPam();
71 cancelPam();
@@ -197,7 +197,7 @@ public:
199public Q_SLOTS:
199public Q_SLOTS:
200− bool respond(QString response)
200+ bool respond(const QString &response)
202 if (!futures.isEmpty()) {
202 if (!futures.isEmpty()) {
203 futures.dequeue().reportFinished(&response);
203 futures.dequeue().reportFinished(&response);
@@ -227,7 +227,7 @@ private Q_SLOTS:
227 Q_EMIT greeter->authenticationComplete();
227 Q_EMIT greeter->authenticationComplete();
230− void handleMessage(pam_handle *handle, QString text, QLightDM::Greeter::MessageType type)
230+ void handleMessage(pam_handle *handle, const QString &text, QLightDM::Greeter::MessageType type)
232 if (handle != pamHandle)
232 if (handle != pamHandle)
@@ -235,7 +235,7 @@ private Q_SLOTS:
235 Q_EMIT greeter->showMessage(text, type);
235 Q_EMIT greeter->showMessage(text, type);
238− void handlePrompt(pam_handle *handle, QString text, QLightDM::Greeter::PromptType type, QLightDM::GreeterImpl::ResponseFuture future)
238+ void handlePrompt(pam_handle *handle, const QString &text, QLightDM::Greeter::PromptType type, QLightDM::GreeterImpl::ResponseFuture future)
240 if (handle != pamHandle) {
240 if (handle != pamHandle) {
241 future.reportResult(QString());
241 future.reportResult(QString());