Commit b7f6849d authored by Ahmad Samir's avatar Ahmad Samir
Browse files

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
parent 8a33aa6c
......@@ -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);
......
......@@ -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;
......
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