summaryrefslogtreecommitdiff
path: root/basctl/source/basicide
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-01-23 14:31:11 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-01-24 07:46:23 +0100
commitd2cf4cb76268c600ff7cfcdb6dc97c859f8b6e38 (patch)
tree42e6a7fc18202a2b8207cd1afbfa503081a97fd6 /basctl/source/basicide
parentd113fe774252ada99ddec3eeaef080cb67919aa3 (diff)
loplugin:constparams in basctl..chart2
Change-Id: I9ac9a34ba58f411d5aad235407553df63216319c Reviewed-on: https://gerrit.libreoffice.org/66791 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'basctl/source/basicide')
-rw-r--r--basctl/source/basicide/bastype2.cxx4
-rw-r--r--basctl/source/basicide/bastype3.cxx6
-rw-r--r--basctl/source/basicide/breakpoint.cxx2
-rw-r--r--basctl/source/basicide/breakpoint.hxx2
-rw-r--r--basctl/source/basicide/macrodlg.cxx2
-rw-r--r--basctl/source/basicide/macrodlg.hxx2
6 files changed, 9 insertions, 9 deletions
diff --git a/basctl/source/basicide/bastype2.cxx b/basctl/source/basicide/bastype2.cxx
index 7e1380f9d7ed..11beb68d110a 100644
--- a/basctl/source/basicide/bastype2.cxx
+++ b/basctl/source/basicide/bastype2.cxx
@@ -1319,7 +1319,7 @@ bool SbTreeListBox::FindEntry(const OUString& rText, EntryType eType, weld::Tree
return false;
}
-bool SbTreeListBox::IsEntryProtected(weld::TreeIter* pEntry)
+bool SbTreeListBox::IsEntryProtected(const weld::TreeIter* pEntry)
{
bool bProtected = false;
if (pEntry && m_xControl->get_iter_depth(*pEntry) == 1)
@@ -1355,7 +1355,7 @@ void SbTreeListBox::AddEntry(
m_xControl->insert(pParent, -1, &rText, &sId, nullptr, nullptr, &rImage, bChildrenOnDemand);
}
-void SbTreeListBox::SetEntryBitmaps(weld::TreeIter& rIter, const OUString& rImage)
+void SbTreeListBox::SetEntryBitmaps(const weld::TreeIter& rIter, const OUString& rImage)
{
m_xControl->set_expander_image(rIter, rImage);
}
diff --git a/basctl/source/basicide/bastype3.cxx b/basctl/source/basicide/bastype3.cxx
index 33930b42e00d..69bfb2c4e200 100644
--- a/basctl/source/basicide/bastype3.cxx
+++ b/basctl/source/basicide/bastype3.cxx
@@ -258,7 +258,7 @@ void SbTreeListBox::ScanAllEntries()
}
}
-SbxVariable* SbTreeListBox::FindVariable(weld::TreeIter* pEntry)
+SbxVariable* SbTreeListBox::FindVariable(const weld::TreeIter* pEntry)
{
if ( !pEntry )
return nullptr;
@@ -449,7 +449,7 @@ EntryDescriptor TreeListBox::GetEntryDescriptor( SvTreeListEntry* pEntry )
return EntryDescriptor( aDocument, eLocation, aLibName, aLibSubName, aName, aMethodName, eType );
}
-EntryDescriptor SbTreeListBox::GetEntryDescriptor(weld::TreeIter* pEntry)
+EntryDescriptor SbTreeListBox::GetEntryDescriptor(const weld::TreeIter* pEntry)
{
ScriptDocument aDocument( ScriptDocument::getApplicationScriptDocument() );
LibraryLocation eLocation = LIBRARY_LOCATION_UNKNOWN;
@@ -691,7 +691,7 @@ bool SbTreeListBox::IsValidEntry(weld::TreeIter& rEntry)
return bIsValid;
}
-SbModule* SbTreeListBox::FindModule(weld::TreeIter* pEntry)
+SbModule* SbTreeListBox::FindModule(const weld::TreeIter* pEntry)
{
return dynamic_cast<SbModule*>(FindVariable(pEntry));
}
diff --git a/basctl/source/basicide/breakpoint.cxx b/basctl/source/basicide/breakpoint.cxx
index ff14d7087592..15d5139f6610 100644
--- a/basctl/source/basicide/breakpoint.cxx
+++ b/basctl/source/basicide/breakpoint.cxx
@@ -125,7 +125,7 @@ void BreakPointList::ResetHitCount()
}
}
-void BreakPointList::remove(BreakPoint* ptr)
+void BreakPointList::remove(const BreakPoint* ptr)
{
for ( auto i = maBreakPoints.begin(); i != maBreakPoints.end(); ++i )
{
diff --git a/basctl/source/basicide/breakpoint.hxx b/basctl/source/basicide/breakpoint.hxx
index 566275060d3b..61a23753e042 100644
--- a/basctl/source/basicide/breakpoint.hxx
+++ b/basctl/source/basicide/breakpoint.hxx
@@ -72,7 +72,7 @@ public:
size_t size() const;
BreakPoint& at(size_t i);
const BreakPoint& at(size_t i) const;
- void remove(BreakPoint* ptr);
+ void remove(const BreakPoint* ptr);
void remove(size_t i);
};
diff --git a/basctl/source/basicide/macrodlg.cxx b/basctl/source/basicide/macrodlg.cxx
index 4ce9619c8e21..d961c9afcda7 100644
--- a/basctl/source/basicide/macrodlg.cxx
+++ b/basctl/source/basicide/macrodlg.cxx
@@ -338,7 +338,7 @@ SbMethod* MacroChooser::CreateMacro()
return pMethod;
}
-void MacroChooser::SaveSetCurEntry(weld::TreeView& rBox, weld::TreeIter& rEntry)
+void MacroChooser::SaveSetCurEntry(weld::TreeView& rBox, const weld::TreeIter& rEntry)
{
// the edit would be killed by the highlight otherwise:
diff --git a/basctl/source/basicide/macrodlg.hxx b/basctl/source/basicide/macrodlg.hxx
index c89886d380fe..9ab71acc13fa 100644
--- a/basctl/source/basicide/macrodlg.hxx
+++ b/basctl/source/basicide/macrodlg.hxx
@@ -61,7 +61,7 @@ private:
DECL_LINK(ButtonHdl, weld::Button&, void);
void CheckButtons();
- void SaveSetCurEntry(weld::TreeView& rBox, weld::TreeIter& rEntry);
+ void SaveSetCurEntry(weld::TreeView& rBox, const weld::TreeIter& rEntry);
void UpdateFields();
void EnableButton(weld::Button& rButton, bool bEnable);