summaryrefslogtreecommitdiff
path: root/unotools/source/i18n/textsearch.cxx
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2012-11-16 12:29:37 +0100
committerEike Rathke <erack@redhat.com>2012-11-16 12:49:40 +0100
commit2814ecb92f9dc1f60094cfa41ab1fa6eaa03471b (patch)
tree85c361ad6c93506e6891508b00a9de8915abed25 /unotools/source/i18n/textsearch.cxx
parentb6c6fc8cedcc7ffc774b8e7373087c7b09479dff (diff)
converted to use LanguageTag
Change-Id: I25c5d965d953146e91903cf2ff8e6b58f978ad20
Diffstat (limited to 'unotools/source/i18n/textsearch.cxx')
-rw-r--r--unotools/source/i18n/textsearch.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/unotools/source/i18n/textsearch.cxx b/unotools/source/i18n/textsearch.cxx
index 05eecd8249e9..4d1d68aad316 100644
--- a/unotools/source/i18n/textsearch.cxx
+++ b/unotools/source/i18n/textsearch.cxx
@@ -17,7 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#include <i18npool/mslangid.hxx>
+#include <i18npool/languagetag.hxx>
#include <com/sun/star/lang/XMultiServiceFactory.hpp>
#include <com/sun/star/util/TextSearch.hpp>
#include <com/sun/star/util/SearchFlags.hpp>
@@ -125,8 +125,7 @@ TextSearch::TextSearch(const SearchParam & rParam, LanguageType eLang )
{
if( LANGUAGE_NONE == eLang )
eLang = LANGUAGE_SYSTEM;
- ::com::sun::star::lang::Locale aLocale(
- MsLangId::convertLanguageToLocale( LanguageType(eLang)));
+ ::com::sun::star::lang::Locale aLocale( LanguageTag( eLang ).getLocale() );
Init( rParam, aLocale);
}