From b7f6849d287459ca03f8b0e6ab1c4770a9a9ce28 Mon Sep 17 00:00:00 2001 From: Ahmad Samir Date: Mon, 24 May 2021 11:59:41 +0200 Subject: [PATCH] Fix type of randomSeed parameter It should be uint. I am not sure this fixes the mentioned bug, but it's correct anyway, std::mt19937 and co. unsigned types; and we shouldn't mix signed with unsigned. CCBUG: 434892 --- src/terminalDisplay/TerminalColor.cpp | 2 +- src/terminalDisplay/TerminalColor.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/terminalDisplay/TerminalColor.cpp b/src/terminalDisplay/TerminalColor.cpp index a9ac7364..79dc1cd2 100644 --- a/src/terminalDisplay/TerminalColor.cpp +++ b/src/terminalDisplay/TerminalColor.cpp @@ -30,7 +30,7 @@ namespace Konsole setColorTable(ColorScheme::defaultTable); } - void TerminalColor::applyProfile(const Profile::Ptr &profile, ColorScheme const *colorScheme, int randomSeed) + void TerminalColor::applyProfile(const Profile::Ptr &profile, ColorScheme const *colorScheme, uint randomSeed) { QColor table[TABLE_COLORS]; colorScheme->getColorTable(table, randomSeed); diff --git a/src/terminalDisplay/TerminalColor.h b/src/terminalDisplay/TerminalColor.h index 0da405f8..5243fd4f 100644 --- a/src/terminalDisplay/TerminalColor.h +++ b/src/terminalDisplay/TerminalColor.h @@ -30,7 +30,7 @@ namespace Konsole public: explicit TerminalColor(QWidget *parent); - void applyProfile(const Profile::Ptr &profile, ColorScheme const *colorScheme, int randomSeed); + void applyProfile(const Profile::Ptr &profile, ColorScheme const *colorScheme, uint randomSeed); QColor backgroundColor() const; QColor foregroundColor() const;