theChild->getName() already available as uiName

Change-Id: I2792b2ac4f0d17dfc2fe68eeacb4dee2173fe5d2
Reviewed-on: https://gerrit.libreoffice.org/85068
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
This commit is contained in:
Caolán McNamara 2019-12-12 15:29:43 +00:00
parent f2c6faa72c
commit dcad3c08b1

View File

@ -519,8 +519,8 @@ void CuiConfigGroupListBox::FillScriptList(const css::uno::Reference< css::scrip
OUString uiName = theChild->getName();
if ( bIsRootNode )
{
if ( ! (theChild->getName() == user || theChild->getName() == share ||
theChild->getName() == currentDocTitle ) )
if ( ! (uiName == user || uiName == share ||
uiName == currentDocTitle ) )
{
bDisplay=false;
}