diff --git a/src/mainimpl.cpp b/src/mainimpl.cpp index e88de1a..94855a4 100644 --- a/src/mainimpl.cpp +++ b/src/mainimpl.cpp @@ -291,10 +291,8 @@ void MainImpl::ActExternalDiff_activated() { } } -const QRegularExpression MainImpl::emptySha("0*"); - QString MainImpl::copyFileToDiffIfNeeded(QStringList* filenames, QString sha) { - if (emptySha.match(sha).hasMatch()) + if (sha == QGit::ZERO_SHA) { return QString(curDir + "/" + rv->st.fileName()); } diff --git a/src/mainimpl.h b/src/mainimpl.h index 77a44aa..2d0afb7 100644 --- a/src/mainimpl.h +++ b/src/mainimpl.h @@ -187,7 +187,6 @@ protected slots: QString textToFind; QRegularExpression shortLogRE; QRegularExpression longLogRE; - static const QRegularExpression emptySha; QMap revision_variables; // variables used in generic input dialogs bool setRepositoryBusy;