summaryrefslogtreecommitdiff
path: root/chart2
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2020-02-27 08:33:54 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-02-27 10:55:18 +0100
commitb623684c666ccf07b59a76fe58e10f34afbb41a4 (patch)
tree801b2a47c3fd055ed93a52fc721b9b653b0fb5c6 /chart2
parentd55b26a093bdbced08985dbc7113190b52a8bc66 (diff)
loplugin:constantparam
Change-Id: I62a0b760e49e38a4565eebf272492159047dda5b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/89613 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'chart2')
-rw-r--r--chart2/source/controller/main/ObjectHierarchy.cxx16
-rw-r--r--chart2/source/controller/uitest/uiobject.cxx2
2 files changed, 9 insertions, 9 deletions
diff --git a/chart2/source/controller/main/ObjectHierarchy.cxx b/chart2/source/controller/main/ObjectHierarchy.cxx
index 3109161b3884..51339e0f4ca2 100644
--- a/chart2/source/controller/main/ObjectHierarchy.cxx
+++ b/chart2/source/controller/main/ObjectHierarchy.cxx
@@ -736,7 +736,7 @@ void ObjectKeyNavigation::setCurrentSelection( const ObjectIdentifier& rOID )
bool ObjectKeyNavigation::first()
{
- ObjectHierarchy aHierarchy( m_xChartDocument, m_pExplicitValueProvider, true/*StepDownInDiagram*/ );
+ ObjectHierarchy aHierarchy( m_xChartDocument, m_pExplicitValueProvider );
ObjectHierarchy::tChildContainer aSiblings( aHierarchy.getSiblings( getCurrentSelection() ) );
bool bResult = !aSiblings.empty();
if( bResult )
@@ -748,7 +748,7 @@ bool ObjectKeyNavigation::first()
bool ObjectKeyNavigation::last()
{
- ObjectHierarchy aHierarchy( m_xChartDocument, m_pExplicitValueProvider, true/*StepDownInDiagram*/ );
+ ObjectHierarchy aHierarchy( m_xChartDocument, m_pExplicitValueProvider );
ObjectHierarchy::tChildContainer aSiblings( aHierarchy.getSiblings( getCurrentSelection() ) );
bool bResult = !aSiblings.empty();
if( bResult )
@@ -760,7 +760,7 @@ bool ObjectKeyNavigation::last()
bool ObjectKeyNavigation::next()
{
- ObjectHierarchy aHierarchy( m_xChartDocument, m_pExplicitValueProvider, true/*StepDownInDiagram*/ );
+ ObjectHierarchy aHierarchy( m_xChartDocument, m_pExplicitValueProvider );
ObjectHierarchy::tChildContainer aSiblings( aHierarchy.getSiblings( getCurrentSelection() ) );
bool bResult = !aSiblings.empty();
if( bResult )
@@ -780,7 +780,7 @@ bool ObjectKeyNavigation::next()
bool ObjectKeyNavigation::previous()
{
- ObjectHierarchy aHierarchy( m_xChartDocument, m_pExplicitValueProvider, true/*StepDownInDiagram*/ );
+ ObjectHierarchy aHierarchy( m_xChartDocument, m_pExplicitValueProvider );
ObjectHierarchy::tChildContainer aSiblings( aHierarchy.getSiblings( getCurrentSelection()));
bool bResult = !aSiblings.empty();
if( bResult )
@@ -800,7 +800,7 @@ bool ObjectKeyNavigation::previous()
bool ObjectKeyNavigation::up()
{
- ObjectHierarchy aHierarchy( m_xChartDocument, m_pExplicitValueProvider, true/*StepDownInDiagram*/ );
+ ObjectHierarchy aHierarchy( m_xChartDocument, m_pExplicitValueProvider );
bool bResult = !ObjectHierarchy::isRootNode( getCurrentSelection());
if( bResult )
setCurrentSelection( aHierarchy.getParent( getCurrentSelection()));
@@ -809,7 +809,7 @@ bool ObjectKeyNavigation::up()
bool ObjectKeyNavigation::down()
{
- ObjectHierarchy aHierarchy( m_xChartDocument, m_pExplicitValueProvider, true/*StepDownInDiagram*/ );
+ ObjectHierarchy aHierarchy( m_xChartDocument, m_pExplicitValueProvider );
bool bResult = aHierarchy.hasChildren( getCurrentSelection());
if( bResult )
{
@@ -822,7 +822,7 @@ bool ObjectKeyNavigation::down()
bool ObjectKeyNavigation::veryFirst()
{
- ObjectHierarchy aHierarchy( m_xChartDocument, m_pExplicitValueProvider, true/*StepDownInDiagram*/ );
+ ObjectHierarchy aHierarchy( m_xChartDocument, m_pExplicitValueProvider );
ObjectHierarchy::tChildContainer aChildren( aHierarchy.getTopLevelChildren());
bool bResult = !aChildren.empty();
if( bResult )
@@ -832,7 +832,7 @@ bool ObjectKeyNavigation::veryFirst()
bool ObjectKeyNavigation::veryLast()
{
- ObjectHierarchy aHierarchy( m_xChartDocument, m_pExplicitValueProvider, true/*StepDownInDiagram*/ );
+ ObjectHierarchy aHierarchy( m_xChartDocument, m_pExplicitValueProvider );
ObjectHierarchy::tChildContainer aChildren( aHierarchy.getTopLevelChildren());
bool bResult = !aChildren.empty();
if( bResult )
diff --git a/chart2/source/controller/uitest/uiobject.cxx b/chart2/source/controller/uitest/uiobject.cxx
index 0f3ec51b1bf8..e850573b97f2 100644
--- a/chart2/source/controller/uitest/uiobject.cxx
+++ b/chart2/source/controller/uitest/uiobject.cxx
@@ -176,7 +176,7 @@ std::set<OUString> ChartWindowUIObject::get_children() const
css::uno::Reference<css::uno::XInterface> xChartView = pController->getChartView();
chart::ExplicitValueProvider* pValueProvider = comphelper::getUnoTunnelImplementation<chart::ExplicitValueProvider>( xChartView );
- chart::ObjectHierarchy aHierarchy(xChartDoc, pValueProvider, true);
+ chart::ObjectHierarchy aHierarchy(xChartDoc, pValueProvider);
chart::ObjectIdentifier aIdentifier = chart::ObjectHierarchy::getRootNodeOID();
aChildren.insert(aIdentifier.getObjectCID());