diff options
Diffstat (limited to 'include/svl')
-rw-r--r-- | include/svl/nfkeytab.hxx | 6 | ||||
-rw-r--r-- | include/svl/zforlist.hxx | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/include/svl/nfkeytab.hxx b/include/svl/nfkeytab.hxx index 7872cc4fb512..458e400ea6ab 100644 --- a/include/svl/nfkeytab.hxx +++ b/include/svl/nfkeytab.hxx @@ -111,9 +111,15 @@ class NfKeywordTable final public: NfKeywordTable() : m_keywords(NF_KEYWORD_ENTRIES_COUNT) {}; + NfKeywordTable( const std::initializer_list<OUString> & l ) : m_keywords(l) + { + assert(m_keywords.size() == NF_KEYWORD_ENTRIES_COUNT); + } OUString & operator[] (Keywords_t::size_type n) { return m_keywords[n]; } const OUString & operator[] (Keywords_t::size_type n) const { return m_keywords[n]; } + + Keywords_t::size_type size() const { return m_keywords.size(); } }; #endif // INCLUDED_SVL_NFKEYTAB_HXX diff --git a/include/svl/zforlist.hxx b/include/svl/zforlist.hxx index 4f27621c9b0f..a2ff78f90a34 100644 --- a/include/svl/zforlist.hxx +++ b/include/svl/zforlist.hxx @@ -822,7 +822,7 @@ public: const NfKeywordTable & GetKeywords( sal_uInt32 nKey ); /** Access for unit tests. */ - const std::vector<OUString> & GetEnglishKeywords() const; + const NfKeywordTable & GetEnglishKeywords() const; /** Access for unit tests. */ const std::vector<Color> & GetStandardColors() const; |