Commit d882cb4a authored by Thomas Hartmann's avatar Thomas Hartmann
Browse files

Utils: Adjust name fillWithZero()



The name was quite missleading.

Change-Id: I538eca2a59e8a861e707fecd8331488e1919408a
Reviewed-by: David Schulz's avatarDavid Schulz <david.schulz@qt.io>
parent 6a725ebd
......@@ -108,7 +108,7 @@ public:
return m_size == 0;
}
void fillWithZero()
void initializeElements()
{
std::array<T, MaxSize>::fill(T{});
}
......
......@@ -72,7 +72,7 @@ TextEditor::TextStyle toTextStyle(ClangBackEnd::HighlightingType type)
TextEditor::TextStyles toTextStyles(ClangBackEnd::HighlightingTypes types)
{
TextEditor::TextStyles textStyles;
textStyles.mixinStyles.fillWithZero();
textStyles.mixinStyles.initializeElements();
textStyles.mainStyle = toTextStyle(types.mainHighlightingType);
......
......@@ -138,7 +138,7 @@ static TextStyles mixinStyle(TextStyle main, TextStyle mixin)
{
TextStyles res;
res.mainStyle = main;
res.mixinStyles.fillWithZero();
res.mixinStyles.initializeElements();
res.mixinStyles.push_back(mixin);
return res;
}
......
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