forked from qt-creator/qt-creator
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:
@@ -108,7 +108,7 @@ public:
|
|||||||
return m_size == 0;
|
return m_size == 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void fillWithZero()
|
void initializeElements()
|
||||||
{
|
{
|
||||||
std::array<T, MaxSize>::fill(T{});
|
std::array<T, MaxSize>::fill(T{});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -72,7 +72,7 @@ TextEditor::TextStyle toTextStyle(ClangBackEnd::HighlightingType type)
|
|||||||
TextEditor::TextStyles toTextStyles(ClangBackEnd::HighlightingTypes types)
|
TextEditor::TextStyles toTextStyles(ClangBackEnd::HighlightingTypes types)
|
||||||
{
|
{
|
||||||
TextEditor::TextStyles textStyles;
|
TextEditor::TextStyles textStyles;
|
||||||
textStyles.mixinStyles.fillWithZero();
|
textStyles.mixinStyles.initializeElements();
|
||||||
|
|
||||||
textStyles.mainStyle = toTextStyle(types.mainHighlightingType);
|
textStyles.mainStyle = toTextStyle(types.mainHighlightingType);
|
||||||
|
|
||||||
|
|||||||
@@ -138,7 +138,7 @@ static TextStyles mixinStyle(TextStyle main, TextStyle mixin)
|
|||||||
{
|
{
|
||||||
TextStyles res;
|
TextStyles res;
|
||||||
res.mainStyle = main;
|
res.mainStyle = main;
|
||||||
res.mixinStyles.fillWithZero();
|
res.mixinStyles.initializeElements();
|
||||||
res.mixinStyles.push_back(mixin);
|
res.mixinStyles.push_back(mixin);
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user