[Libreoffice-commits] core.git: include/svx svx/source
Eike Rathke
erack at redhat.com
Thu Apr 17 16:06:24 PDT 2014
include/svx/langbox.hxx | 1 -
svx/source/dialog/langbox.cxx | 10 ++++------
2 files changed, 4 insertions(+), 7 deletions(-)
New commits:
commit 7531f838c89b0e1d0826d4144ad2d0c70a41e1aa
Author: Eike Rathke <erack at redhat.com>
Date: Fri Apr 18 01:03:55 2014 +0200
we don't even need an instance of SvtLanguageTable at SvxLanguageBox
Change-Id: I7ccefc73d7f6e5b7c41d6819ae13116af9d5b5ef
diff --git a/include/svx/langbox.hxx b/include/svx/langbox.hxx
index 8885064..0208142 100644
--- a/include/svx/langbox.hxx
+++ b/include/svx/langbox.hxx
@@ -57,7 +57,6 @@ private:
Image m_aCheckedImage;
OUString m_aAllString;
com::sun::star::uno::Sequence< sal_Int16 > *m_pSpellUsedLang;
- SvtLanguageTable* m_pLangTable;
sal_Int16 m_nLangList;
bool m_bHasLangNone;
bool m_bLangNoneIsLangAll;
diff --git a/svx/source/dialog/langbox.cxx b/svx/source/dialog/langbox.cxx
index 4e206af..ae89cf4 100644
--- a/svx/source/dialog/langbox.cxx
+++ b/svx/source/dialog/langbox.cxx
@@ -143,7 +143,6 @@ extern "C" SAL_DLLPUBLIC_EXPORT Window* SAL_CALL makeSvxLanguageBox(Window *pPar
void SvxLanguageBox::Init()
{
- m_pLangTable = new SvtLanguageTable;
m_aNotCheckedImage = Image( SVX_RES( RID_SVXIMG_NOTCHECKED ) );
m_aCheckedImage = Image( SVX_RES( RID_SVXIMG_CHECKED ) );
m_aAllString = SVX_RESSTR( RID_SVXSTR_LANGUAGE_ALL );
@@ -180,7 +179,6 @@ void SvxLanguageBox::Init()
SvxLanguageBox::~SvxLanguageBox()
{
delete m_pSpellUsedLang;
- delete m_pLangTable;
}
@@ -340,7 +338,7 @@ sal_Int32 SvxLanguageBox::ImplInsertLanguage( const LanguageType nLangType, sal_
return nAt;
}
- OUString aStrEntry = m_pLangTable->GetString( nLang );
+ OUString aStrEntry = SvtLanguageTable::GetLanguageString( nLang );
if (LANGUAGE_NONE == nLang && m_bHasLangNone && m_bLangNoneIsLangAll)
aStrEntry = m_aAllString;
@@ -349,11 +347,11 @@ sal_Int32 SvxLanguageBox::ImplInsertLanguage( const LanguageType nLangType, sal_
{
nRealLang = MsLangId::resolveSystemLanguageByScriptType(nRealLang, nType);
aStrEntry += " - ";
- aStrEntry += m_pLangTable->GetString( nRealLang );
+ aStrEntry += SvtLanguageTable::GetLanguageString( nRealLang );
} else if (nRealLang == LANGUAGE_USER_SYSTEM_CONFIG) {
nRealLang = MsLangId::getSystemLanguage();
aStrEntry += " - ";
- aStrEntry += m_pLangTable->GetString( nRealLang );
+ aStrEntry += SvtLanguageTable::GetLanguageString( nRealLang );
}
aStrEntry = ApplyLreOrRleEmbedding( aStrEntry );
@@ -411,7 +409,7 @@ sal_Int32 SvxLanguageBox::InsertLanguage( const LanguageType nLangType,
return nAt;
}
- OUString aStrEntry = m_pLangTable->GetString( nLang );
+ OUString aStrEntry = SvtLanguageTable::GetLanguageString( nLang );
if (LANGUAGE_NONE == nLang && m_bHasLangNone && m_bLangNoneIsLangAll)
aStrEntry = m_aAllString;
More information about the Libreoffice-commits
mailing list