Kaydet (Commit) b15019d8 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

-fsanitize=vptr: SID_ATTR_*LANGUAGE are of type SvxLanguageItem

Change-Id: If00273e3836aeb70adee36f49f0ef502b6a7aebb
üst 4091b4fb
...@@ -1252,11 +1252,23 @@ SfxItemSet* OfaTreeOptionsDialog::CreateItemSet( sal_uInt16 nId ) ...@@ -1252,11 +1252,23 @@ SfxItemSet* OfaTreeOptionsDialog::CreateItemSet( sal_uInt16 nId )
const SfxPoolItem* pItem = NULL; const SfxPoolItem* pItem = NULL;
SfxDispatcher* pDispatch = pViewFrame->GetDispatcher(); SfxDispatcher* pDispatch = pViewFrame->GetDispatcher();
if(SfxItemState::DEFAULT <= pDispatch->QueryState(SID_ATTR_LANGUAGE, pItem)) if(SfxItemState::DEFAULT <= pDispatch->QueryState(SID_ATTR_LANGUAGE, pItem))
pRet->Put(SfxUInt16Item(SID_ATTR_LANGUAGE, static_cast<const SvxLanguageItem*>(pItem)->GetLanguage())); pRet->Put(
SvxLanguageItem(
(static_cast<const SvxLanguageItem*>(pItem)
->GetLanguage()),
SID_ATTR_LANGUAGE));
if(SfxItemState::DEFAULT <= pDispatch->QueryState(SID_ATTR_CHAR_CJK_LANGUAGE, pItem)) if(SfxItemState::DEFAULT <= pDispatch->QueryState(SID_ATTR_CHAR_CJK_LANGUAGE, pItem))
pRet->Put(SfxUInt16Item(SID_ATTR_CHAR_CJK_LANGUAGE, static_cast<const SvxLanguageItem*>(pItem)->GetLanguage())); pRet->Put(
SvxLanguageItem(
(static_cast<const SvxLanguageItem*>(pItem)
->GetLanguage()),
SID_ATTR_CHAR_CJK_LANGUAGE));
if(SfxItemState::DEFAULT <= pDispatch->QueryState(SID_ATTR_CHAR_CTL_LANGUAGE, pItem)) if(SfxItemState::DEFAULT <= pDispatch->QueryState(SID_ATTR_CHAR_CTL_LANGUAGE, pItem))
pRet->Put(SfxUInt16Item(SID_ATTR_CHAR_CTL_LANGUAGE, static_cast<const SvxLanguageItem*>(pItem)->GetLanguage())); pRet->Put(
SvxLanguageItem(
(static_cast<const SvxLanguageItem*>(pItem)
->GetLanguage()),
SID_ATTR_CHAR_CTL_LANGUAGE));
pRet->Put(aHyphen); pRet->Put(aHyphen);
if(SfxItemState::DEFAULT <= pDispatch->QueryState(SID_AUTOSPELL_CHECK, pItem)) if(SfxItemState::DEFAULT <= pDispatch->QueryState(SID_AUTOSPELL_CHECK, pItem))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment