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 --- svx/source/dialog/rubydialog.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'svx/source/dialog') diff --git a/svx/source/dialog/rubydialog.cxx b/svx/source/dialog/rubydialog.cxx index c4cb82ac7a32..0b91a6385a21 100644 --- a/svx/source/dialog/rubydialog.cxx +++ b/svx/source/dialog/rubydialog.cxx @@ -621,7 +621,7 @@ IMPL_LINK_NOARG(SvxRubyDialog, CharStyleHdl_Impl) AssertOneEntry(); OUString sStyleName; if(LISTBOX_ENTRY_NOTFOUND != m_pCharStyleLB->GetSelectEntryPos()) - sStyleName = *(OUString*) m_pCharStyleLB->GetEntryData(m_pCharStyleLB->GetSelectEntryPos()); + sStyleName = *(OUString*) m_pCharStyleLB->GetSelectEntryData(); Sequence& aRubyValues = pImpl->GetRubyValues(); for(sal_Int32 nRuby = 0; nRuby < aRubyValues.getLength(); nRuby++) { -- cgit