Commit 5c769fcf authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Const'ify variable

parent f50490f4
......@@ -105,7 +105,7 @@ void SendJob::doStart()
return;
}
int sizeLimit = session()->sizeLimit();
const int sizeLimit = session()->sizeLimit();
if (sizeLimit > 0 && size() > sizeLimit) {
setError(KJob::UserDefinedError);
setErrorText(i18n("Could not send the message because it exceeds the maximum allowed size of %1 bytes. (Message size: %2 bytes.)", sizeLimit, size()));
......
Markdown is supported
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