From 61cbbc1a79b082715eae5b9a6830b027b359c066 Mon Sep 17 00:00:00 2001 From: Nav Date: Fri, 25 Aug 2023 19:56:02 +0100 Subject: [PATCH] Tidying --- .../SnapshotManager/SnapshotDiff/SnapshotDiff.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/SnapshotManager/SnapshotDiff/SnapshotDiff.cpp b/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/SnapshotManager/SnapshotDiff/SnapshotDiff.cpp index 149b9904..05fb8d18 100644 --- a/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/SnapshotManager/SnapshotDiff/SnapshotDiff.cpp +++ b/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/SnapshotManager/SnapshotDiff/SnapshotDiff.cpp @@ -407,10 +407,12 @@ namespace Widgets } this->changeListPane->setDiffRanges(diffRanges); + + const auto diffCount = this->differentialHexViewerSharedState.differences.size(); this->diffCountLabel->setText( - count == 0 + diffCount == 0 ? "Contents are identical" - : QLocale(QLocale::English).toString(count) + (count == 1 ? " difference" : " differences") + : QLocale(QLocale::English).toString(diffCount) + (diffCount == 1 ? " difference" : " differences") ); }