From 2557c07688bdf5a37980503d051c5f75e8d33d80 Mon Sep 17 00:00:00 2001 From: Eike Rathke Date: Fri, 15 Dec 2017 21:40:28 +0100 Subject: Move init of keywords around, preset with English, localized case by case This way we can't forget an sKeyword element and need to care only about the exceptions. Adds a slight penalty for German in that it has 25 keywords initialized twice, but.. Change-Id: I99ba228ef8b1517a32ce98a9c79cfbe2b1d0b340 Reviewed-on: https://gerrit.libreoffice.org/46575 Reviewed-by: Eike Rathke Tested-by: Jenkins --- include/svl/nfkeytab.hxx | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include/svl') diff --git a/include/svl/nfkeytab.hxx b/include/svl/nfkeytab.hxx index 458e400ea6ab..ddffc030d482 100644 --- a/include/svl/nfkeytab.hxx +++ b/include/svl/nfkeytab.hxx @@ -120,6 +120,12 @@ public: const OUString & operator[] (Keywords_t::size_type n) const { return m_keywords[n]; } Keywords_t::size_type size() const { return m_keywords.size(); } + + NfKeywordTable& operator=( const NfKeywordTable& r ) + { + m_keywords = r.m_keywords; + return *this; + } }; #endif // INCLUDED_SVL_NFKEYTAB_HXX -- cgit