summaryrefslogtreecommitdiff
path: root/basctl
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
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')
-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
-rw-r--r--basctl/source/inc/bastype2.hxx12
7 files changed, 15 insertions, 15 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);
diff --git a/basctl/source/inc/bastype2.hxx b/basctl/source/inc/bastype2.hxx
index 923e722d4bb8..4761fbb5ca9d 100644
--- a/basctl/source/inc/bastype2.hxx
+++ b/basctl/source/inc/bastype2.hxx
@@ -256,7 +256,7 @@ private:
weld::Window* m_pTopLevel;
BrowseMode nMode;
DocumentEventNotifier m_aNotifier;
- void SetEntryBitmaps(weld::TreeIter& rIter, const OUString& rImage);
+ void SetEntryBitmaps(const weld::TreeIter& rIter, const OUString& rImage);
protected:
DECL_LINK(RequestingChildrenHdl, weld::TreeIter&, bool);
@@ -286,16 +286,16 @@ public:
void ScanAllEntries();
void UpdateEntries();
- bool IsEntryProtected(weld::TreeIter* pEntry);
+ bool IsEntryProtected(const weld::TreeIter* pEntry);
void SetMode( BrowseMode nM ) { nMode = nM; }
BrowseMode GetMode() const { return nMode; }
- SbModule* FindModule(weld::TreeIter* pEntry);
- SbxVariable* FindVariable(weld::TreeIter* pEntry);
+ SbModule* FindModule(const weld::TreeIter* pEntry);
+ SbxVariable* FindVariable(const weld::TreeIter* pEntry);
bool FindRootEntry(const ScriptDocument& rDocument, LibraryLocation eLocation, weld::TreeIter& rIter);
bool FindEntry(const OUString& rText, EntryType eType, weld::TreeIter& rIter);
- EntryDescriptor GetEntryDescriptor(weld::TreeIter* pEntry);
+ EntryDescriptor GetEntryDescriptor(const weld::TreeIter* pEntry);
static ItemType ConvertType (EntryType eType);
bool IsValidEntry(weld::TreeIter& rEntry);
@@ -303,7 +303,7 @@ public:
weld::TreeIter* pIter, bool bChildrenOnDemand, std::unique_ptr<Entry>&& rUserData);
void connect_changed(const Link<weld::TreeView&, void>& rLink) { m_xControl->connect_changed(rLink); }
- std::unique_ptr<weld::TreeIter> make_iterator(weld::TreeIter* pIter = nullptr) const { return m_xControl->make_iterator(pIter); }
+ std::unique_ptr<weld::TreeIter> make_iterator(const weld::TreeIter* pIter = nullptr) const { return m_xControl->make_iterator(pIter); }
void copy_iterator(const weld::TreeIter& rSource, weld::TreeIter& rDest) const { m_xControl->copy_iterator(rSource, rDest); }
bool get_selected(weld::TreeIter* pIter) const { return m_xControl->get_selected(pIter); }
void select(const weld::TreeIter& rIter) { m_xControl->select(rIter); }