Minor: remove trailing ")" in msg

This commit is contained in:
Gerhard Hoffmann 2024-04-29 15:03:43 +02:00
parent 543e712c62
commit 60d78790ba

View File

@ -193,7 +193,7 @@ QStringList GitClient::gitShowReason(QString branchName) {
int const m = s.indexOf("m="); int const m = s.indexOf("m=");
int const d = s.indexOf("d="); int const d = s.indexOf("d=");
QString msg = IsmasClient::getReasonForLastSendVersion(); QString msg{""}; // IsmasClient::getReasonForLastSendVersion();
QString commit{""}, date{""}; QString commit{""}, date{""};
if (c != -1) { if (c != -1) {
@ -205,9 +205,9 @@ QStringList GitClient::gitShowReason(QString branchName) {
start = m + 2; start = m + 2;
if (d >= start) { if (d >= start) {
length = d - start; length = d - start;
msg += " ("; // msg = " (";
msg = s.mid(start, length).trimmed(); msg = s.mid(start, length).trimmed();
msg += ")"; // msg += ")";
start = d + 2; start = d + 2;
date = s.mid(start); date = s.mid(start);