Utils: Adjust name fillWithZero()

The name was quite missleading.

Change-Id: I538eca2a59e8a861e707fecd8331488e1919408a
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
Thomas Hartmann
2017-03-28 14:41:14 +02:00
parent 6a725ebd41
commit d882cb4a8f
3 changed files with 3 additions and 3 deletions

View File

@@ -108,7 +108,7 @@ public:
return m_size == 0;
}
void fillWithZero()
void initializeElements()
{
std::array<T, MaxSize>::fill(T{});
}

View File

@@ -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);

View File

@@ -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;
}