diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-08-14 20:11:07 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-08-15 09:04:30 +0200 |
commit | c77e30cbc0e7fb56593dac345291fd33998fbaf0 (patch) | |
tree | 2f8c5114f5176ea38ca2623b39734fbaf2784b99 /cui/source/customize | |
parent | d72f68e91b595d1a8120f39b80483c3f06838099 (diff) |
replace ".get->" with "->"
Change-Id: I327a6fda1fe0170da33e06b735f09a39421c8a58
Reviewed-on: https://gerrit.libreoffice.org/77469
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'cui/source/customize')
-rw-r--r-- | cui/source/customize/CommandCategoryListBox.cxx | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/cui/source/customize/CommandCategoryListBox.cxx b/cui/source/customize/CommandCategoryListBox.cxx index 6c8d0118f1ee..3335836afe3a 100644 --- a/cui/source/customize/CommandCategoryListBox.cxx +++ b/cui/source/customize/CommandCategoryListBox.cxx @@ -340,7 +340,7 @@ void CommandCategoryListBox::categorySelected(CuiConfigFunctionListBox* pFunctio // TODO exception handling } - if ( rootNode.is() && rootNode.get()->hasChildNodes() ) + if ( rootNode.is() && rootNode->hasChildNodes() ) { //We call acquire on the XBrowseNode so that it does not //get autodestructed and become invalid when accessed later. @@ -351,24 +351,24 @@ void CommandCategoryListBox::categorySelected(CuiConfigFunctionListBox* pFunctio SfxCfgKind::GROUP_SCRIPTCONTAINER, 0, static_cast<void *>(rootNode.get()) ) ); // Add main macro groups - for ( auto const & childGroup : rootNode.get()->getChildNodes() ) + for ( auto const & childGroup : rootNode->getChildNodes() ) { OUString sUIName; - childGroup.get()->acquire(); + childGroup->acquire(); - if ( childGroup.get()->hasChildNodes() ) + if ( childGroup->hasChildNodes() ) { - if ( childGroup.get()->getName() == "user" ) + if ( childGroup->getName() == "user" ) { sUIName = CuiResId( RID_SVXSTR_MYMACROS ); } - else if ( childGroup.get()->getName() == "share" ) + else if ( childGroup->getName() == "share" ) { sUIName = CuiResId( RID_SVXSTR_PRODMACROS ); } else { - sUIName = childGroup.get()->getName(); + sUIName = childGroup->getName(); } if (sUIName.isEmpty()) @@ -490,14 +490,14 @@ void CommandCategoryListBox::addChildren( m_searchOptions.searchString = filterTerm; utl::TextSearch textSearch( m_searchOptions ); - for (auto const & child : parentNode.get()->getChildNodes()) + for (auto const & child : parentNode->getChildNodes()) { // Acquire to prevent auto-destruction - child.get()->acquire(); + child->acquire(); - if (child.get()->hasChildNodes()) + if (child->hasChildNodes()) { - OUString sUIName = child.get()->getName(); + OUString sUIName = child->getName(); m_aGroupInfo.push_back( std::make_unique<SfxGroupInfo_Impl>(SfxCfgKind::GROUP_SCRIPTCONTAINER, 0, static_cast<void *>( child.get()))); @@ -511,10 +511,10 @@ void CommandCategoryListBox::addChildren( else rNodesToExpand.emplace_back(std::move(xNewEntry)); } - else if ( child.get()->getType() == css::script::browse::BrowseNodeTypes::SCRIPT ) + else if ( child->getType() == css::script::browse::BrowseNodeTypes::SCRIPT ) { // Prepare for filtering - OUString sUIName = child.get()->getName(); + OUString sUIName = child->getName(); sal_Int32 aStartPos = 0; sal_Int32 aEndPos = sUIName.getLength(); |