diff options
author | Eike Rathke <erack@redhat.com> | 2014-05-13 12:02:42 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2014-05-13 12:02:42 +0200 |
commit | 213e429cfb48510650308975d4adca6ab9aee4f4 (patch) | |
tree | 79257fcdf30d027c3fb0b5ac1376d3ea97ea869d /svtools | |
parent | d812b784313ed85ae5085d54a3ae50aa064c053c (diff) |
Revert "remove unused code -SvtLanguageTable::AddLanguageTag"
This reverts commit d812b784313ed85ae5085d54a3ae50aa064c053c.
I added that code in preparation of changes I'm doing.
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/misc/langtab.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/svtools/source/misc/langtab.cxx b/svtools/source/misc/langtab.cxx index f31ea289c398..b8eeec0ea4aa 100644 --- a/svtools/source/misc/langtab.cxx +++ b/svtools/source/misc/langtab.cxx @@ -233,4 +233,10 @@ LanguageType SvtLanguageTable::GetLanguageTypeAtIndex( sal_uInt32 nIndex ) } +sal_uInt32 SvtLanguageTable::AddLanguageTag( const LanguageTag& rLanguageTag, const OUString& rString ) +{ + return theLanguageTable::get().AddItem( (rString.isEmpty() ? rLanguageTag.getBcp47() : rString), + rLanguageTag.getLanguageType()); +} + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |