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>
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
@@ -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));
|
||||
}
|
||||
|
@@ -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 )
|
||||
{
|
||||
|
@@ -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);
|
||||
};
|
||||
|
||||
|
@@ -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:
|
||||
|
||||
|
@@ -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);
|
||||
|
@@ -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); }
|
||||
|
@@ -706,7 +706,7 @@ namespace basegfx
|
||||
Iterator first,
|
||||
Iterator last,
|
||||
ListOfEdges& rActiveEdgeList,
|
||||
SweepLineEvent& rCurrEvent,
|
||||
SweepLineEvent const & rCurrEvent,
|
||||
VectorOfPolygons& rPolygonPool,
|
||||
B2DPolyPolygon& rRes )
|
||||
{
|
||||
|
@@ -155,7 +155,7 @@ class DemoRenderer
|
||||
mxCanvas->drawText( aText, mxDefaultFont, maViewState, aRenderState, 0);
|
||||
}
|
||||
|
||||
void drawRect( tools::Rectangle rRect, uno::Sequence< double > &aColor, int /*nWidth*/ )
|
||||
void drawRect( tools::Rectangle rRect, const uno::Sequence< double > &aColor, int /*nWidth*/ )
|
||||
{
|
||||
uno::Sequence< geometry::RealPoint2D > aPoints(4);
|
||||
uno::Reference< rendering::XLinePolyPolygon2D > xPoly;
|
||||
|
@@ -756,7 +756,7 @@ void DataSourceTabPage::disposingRangeSelection()
|
||||
m_rDialogModel.getRangeSelectionHelper()->stopRangeListening( false );
|
||||
}
|
||||
|
||||
bool DataSourceTabPage::updateModelFromControl(weld::Entry* pField)
|
||||
bool DataSourceTabPage::updateModelFromControl(const weld::Entry* pField)
|
||||
{
|
||||
if (!m_bIsDirty)
|
||||
return true;
|
||||
|
@@ -97,7 +97,7 @@ private:
|
||||
<TRUE/> if the text from the field is a valid format to the internal
|
||||
data was valid
|
||||
*/
|
||||
bool updateModelFromControl(weld::Entry* pField = nullptr);
|
||||
bool updateModelFromControl(const weld::Entry* pField = nullptr);
|
||||
|
||||
/** @return </sal_True>, if the edit field contains a valid range entry. If no
|
||||
XCellRangesAccess can be obtained, </sal_False> is returned.
|
||||
|
Reference in New Issue
Block a user