summaryrefslogtreecommitdiff
path: root/sw/source/ui/misc
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2022-02-04 14:10:50 +0000
committerCaolán McNamara <caolanm@redhat.com>2022-02-04 16:43:44 +0100
commitd5a43d2c0ce695a87b3ccd322c11b1d28400f2da (patch)
tree5ce8f007c52f55be1b25ffb64c476bb38fbc3854 /sw/source/ui/misc
parent50682cea4196819980c8e2d4018f80384097ce6f (diff)
use some more add toId/fromId
Change-Id: I3a21e2aa5a2c482c0bac1d4c9bf84f8b56261408 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/129492 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw/source/ui/misc')
-rw-r--r--sw/source/ui/misc/glossary.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sw/source/ui/misc/glossary.cxx b/sw/source/ui/misc/glossary.cxx
index 842fc3f621e4..5a798c9958d5 100644
--- a/sw/source/ui/misc/glossary.cxx
+++ b/sw/source/ui/misc/glossary.cxx
@@ -274,7 +274,7 @@ IMPL_LINK(SwGlossaryDlg, GrpSelect, weld::TreeView&, rBox, void)
}
else
pParent = xEntry.get();
- GroupUserData* pGroupData = reinterpret_cast<GroupUserData*>(rBox.get_id(*pParent).toInt64());
+ GroupUserData* pGroupData = weld::fromId<GroupUserData*>(rBox.get_id(*pParent));
::SetCurrGlosGroup(pGroupData->sGroupName
+ OUStringChar(GLOS_DELIM)
+ OUString::number(pGroupData->nPathIdx));
@@ -654,7 +654,7 @@ IMPL_LINK_NOARG(SwGlossaryDlg, BibHdl, weld::Button&, void)
{
if (!m_xCategoryBox->get_iter_depth(*xEntry))
{
- GroupUserData* pGroupData = reinterpret_cast<GroupUserData*>(m_xCategoryBox->get_id(*xEntry).toInt64());
+ GroupUserData* pGroupData = weld::fromId<GroupUserData*>(m_xCategoryBox->get_id(*xEntry));
const OUString sGroup = pGroupData->sGroupName
+ OUStringChar(GLOS_DELIM)
+ OUString::number(pGroupData->nPathIdx);
@@ -750,7 +750,7 @@ void SwGlossaryDlg::Init()
{
if (!m_xCategoryBox->get_iter_depth(*xSearch))
{
- GroupUserData* pData = reinterpret_cast<GroupUserData*>(m_xCategoryBox->get_id(*xSearch).toInt64());
+ GroupUserData* pData = weld::fromId<GroupUserData*>(m_xCategoryBox->get_id(*xSearch));
if (!pData->bReadonly)
{
xSelEntry = std::move(xSearch);
@@ -850,7 +850,7 @@ OUString SwGlossaryDlg::GetCurrGrpName() const
{
if (m_xCategoryBox->get_iter_depth(*xEntry))
m_xCategoryBox->iter_parent(*xEntry);
- GroupUserData* pGroupData = reinterpret_cast<GroupUserData*>(m_xCategoryBox->get_id(*xEntry).toInt64());
+ GroupUserData* pGroupData = weld::fromId<GroupUserData*>(m_xCategoryBox->get_id(*xEntry));
return pGroupData->sGroupName + OUStringChar(GLOS_DELIM) + OUString::number(pGroupData->nPathIdx);
}
return OUString();