diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-11-07 10:24:48 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-11-07 11:28:55 +0100 |
commit | 53b289eabb3d265b47bc7fb6cc430291c97f0c0b (patch) | |
tree | 0643857f0ff45e03f6f79b7257b7d25fa6a768c5 /sw/source/ui/dialog | |
parent | 1a9a99a8eee7be3d98ca705425a6778ee8efbfc8 (diff) |
use more TypedWhichId
Change-Id: If76b02a20b01624c2cc0aa5e3c310aa1dd930c01
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/159058
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/ui/dialog')
-rw-r--r-- | sw/source/ui/dialog/ascfldlg.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/ui/dialog/ascfldlg.cxx b/sw/source/ui/dialog/ascfldlg.cxx index d800233e2856..43a3249823ae 100644 --- a/sw/source/ui/dialog/ascfldlg.cxx +++ b/sw/source/ui/dialog/ascfldlg.cxx @@ -162,9 +162,9 @@ SwAsciiFilterDlg::SwAsciiFilterDlg( weld::Window* pParent, SwDocShell& rDocSh, { if(pDoc) { - const sal_uInt16 nWhich = GetWhichOfScript( RES_CHRATR_LANGUAGE, nAppScriptType); - aOpt.SetLanguage( static_cast<const SvxLanguageItem&>(pDoc-> - GetDefault( nWhich )).GetLanguage()); + const TypedWhichId<SvxLanguageItem> nWhich = GetWhichOfScript( RES_CHRATR_LANGUAGE, nAppScriptType); + const SvxLanguageItem& rLangItem = pDoc->GetDefault( nWhich ); + aOpt.SetLanguage( rLangItem.GetLanguage() ); } else { |