summaryrefslogtreecommitdiff
path: root/cui/source/dialogs/SpellAttrib.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'cui/source/dialogs/SpellAttrib.hxx')
-rw-r--r--cui/source/dialogs/SpellAttrib.hxx19
1 files changed, 9 insertions, 10 deletions
diff --git a/cui/source/dialogs/SpellAttrib.hxx b/cui/source/dialogs/SpellAttrib.hxx
index c086fe3d086a..d732aad69ba1 100644
--- a/cui/source/dialogs/SpellAttrib.hxx
+++ b/cui/source/dialogs/SpellAttrib.hxx
@@ -86,16 +86,15 @@ struct SpellErrorDescription
css::uno::Sequence<css::uno::Any> toSequence() const
{
- css::uno::Sequence<css::uno::Any> aEntries(9);
- aEntries[0] <<= bIsGrammarError;
- aEntries[1] <<= sErrorText;
- aEntries[2] <<= sDialogTitle;
- aEntries[3] <<= sExplanation;
- aEntries[4] <<= sExplanationURL;
- aEntries[5] <<= aLocale;
- aEntries[6] <<= xGrammarChecker;
- aEntries[7] <<= aSuggestions;
- aEntries[8] <<= sRuleId;
+ css::uno::Sequence<css::uno::Any> aEntries{ css::uno::Any(bIsGrammarError),
+ css::uno::Any(sErrorText),
+ css::uno::Any(sDialogTitle),
+ css::uno::Any(sExplanation),
+ css::uno::Any(sExplanationURL),
+ css::uno::Any(aLocale),
+ css::uno::Any(xGrammarChecker),
+ css::uno::Any(aSuggestions),
+ css::uno::Any(sRuleId) };
return aEntries;
}