Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 5159cfb1 authored by Laurent Montel's avatar Laurent Montel 😁

Consti'fy

parent 9cb4aea3
......@@ -404,7 +404,7 @@ void SettingsBase::changeToolBar( BaseMode::ToolBarItems toolbar )
toolBar()->setVisible(toolbar != BaseMode::NoItems || (activeView && activeView->actionsList().count() > 0));
}
void SettingsBase::changeAboutMenu( const KAboutData * menuAbout, QAction * menuItem, QString fallback )
void SettingsBase::changeAboutMenu( const KAboutData * menuAbout, QAction * menuItem, const QString &fallback )
{
if( !menuItem ) {
return;
......
......@@ -61,7 +61,7 @@ private Q_SLOTS:
void viewChange(bool state);
void updateViewActions();
void changeToolBar( BaseMode::ToolBarItems toolbar );
void changeAboutMenu( const KAboutData * menuAbout, QAction * menuItem, QString fallback );
void changeAboutMenu( const KAboutData * menuAbout, QAction * menuItem, const QString &fallback );
private:
// The plugins
......
......@@ -125,7 +125,7 @@ void ToolTipManager::prepareToolTip()
showToolTip( d->item );
}
void ToolTipManager::showToolTip( QModelIndex menuItem )
void ToolTipManager::showToolTip( const QModelIndex &menuItem )
{
if (QApplication::mouseButtons() & Qt::LeftButton) {
return;
......
......@@ -63,7 +63,7 @@ private Q_SLOTS:
void requestToolTip(const QModelIndex& index);
private:
void showToolTip( QModelIndex menuItem );
void showToolTip( const QModelIndex &menuItem );
QWidget * createTipContent( QModelIndex item );
QLayout * generateToolTipLine( QModelIndex * item, QWidget * toolTip, QSize iconSize, bool comment );
......
......@@ -52,7 +52,7 @@ BaseMode::~BaseMode()
delete d;
}
void BaseMode::init( const KService::Ptr modeService )
void BaseMode::init( const KService::Ptr &modeService )
{
d->rootItem = BaseData::instance()->menuItem();
d->service = modeService;
......
......@@ -86,7 +86,7 @@ public:
*
* @param modeService Plugins service object, used for providing extra information to System Settings.
*/
void init( const KService::Ptr modeService );
void init( const KService::Ptr &modeService );
/**
* Prepares the BaseMode for use.\n
......
......@@ -124,7 +124,7 @@ void ToolTipManager::prepareToolTip()
}
}
void ToolTipManager::showToolTip( QModelIndex menuItem )
void ToolTipManager::showToolTip( const QModelIndex &menuItem )
{
if (QApplication::mouseButtons() & Qt::LeftButton) {
return;
......
......@@ -64,7 +64,7 @@ private Q_SLOTS:
void prepareToolTip();
private:
void showToolTip( QModelIndex menuItem );
void showToolTip( const QModelIndex &menuItem );
QWidget * createTipContent( QModelIndex item );
QLayout * generateToolTipLine( QModelIndex * item, QWidget * toolTip, QSize iconSize, bool comment );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment