From 9f8ffc8dfed61eb8460d92ce85b20effe5114f87 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 13 Feb 2015 13:31:57 +0200 Subject: add GetSelectEntryData to ListBox and ComboBox to reduce code clutter like pLbSelect->GetEntryData(pLbSelect->GetSelectEntryPos()) since this is a fairly frequent operation. Change-Id: I41daf30fdeda2442ad1ac829e12f553233bae184 Reviewed-on: https://gerrit.libreoffice.org/14472 Reviewed-by: Noel Grandin Tested-by: Noel Grandin --- sw/source/ui/misc/glosbib.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sw/source/ui/misc/glosbib.cxx') diff --git a/sw/source/ui/misc/glosbib.cxx b/sw/source/ui/misc/glosbib.cxx index ca1eff0631ad..385ce257cfeb 100644 --- a/sw/source/ui/misc/glosbib.cxx +++ b/sw/source/ui/misc/glosbib.cxx @@ -318,7 +318,7 @@ IMPL_LINK_NOARG(SwGlossaryGroupDlg, ModifyHdl) bool bEnableNew = true; bool bEnableDel = false; sal_uLong nCaseReadonly = - reinterpret_cast(m_pPathLB->GetEntryData(m_pPathLB->GetSelectEntryPos())); + reinterpret_cast(m_pPathLB->GetSelectEntryData()); bool bDirReadonly = 0 != (nCaseReadonly&PATH_READONLY); if(sEntry.isEmpty() || bDirReadonly) -- cgit