Commit a986ecd5 authored by Friedrich W. H. Kossebau's avatar Friedrich W. H. Kossebau
Browse files

More const ref with parameters

parent 2ef2b072
......@@ -87,7 +87,7 @@ Q_SIGNALS:
void viewChanged();
void fileChanged();
void modifiedChanged();
void floatingMessageRequested(QString message, QString iconName);
void floatingMessageRequested(const QString &message, const QString &iconName);
void interactionStarted();
void loadingFinished();
void savingFinished();
......
......@@ -280,7 +280,7 @@ void KisView::setShowFloatingMessage(bool show)
d->showFloatingMessage = show;
}
void KisView::showFloatingMessageImpl(const QString message, const QIcon& icon, int timeout, KisFloatingMessage::Priority priority, int alignment)
void KisView::showFloatingMessageImpl(const QString &message, const QIcon& icon, int timeout, KisFloatingMessage::Priority priority, int alignment)
{
if (!d->viewManager) return;
......@@ -810,8 +810,8 @@ bool KisView::queryClose()
}
void KisView::resetImageSizeAndScroll(bool changeCentering,
const QPointF oldImageStillPoint,
const QPointF newImageStillPoint)
const QPointF &oldImageStillPoint,
const QPointF &newImageStillPoint)
{
const KisCoordinatesConverter *converter = d->canvas.coordinatesConverter();
......
......@@ -185,8 +185,8 @@ public:
KisCoordinatesConverter *viewConverter() const;
void resetImageSizeAndScroll(bool changeCentering,
const QPointF oldImageStillPoint = QPointF(),
const QPointF newImageStillPoint = QPointF());
const QPointF &oldImageStillPoint = QPointF(),
const QPointF &newImageStillPoint = QPointF());
void setCurrentNode(KisNodeSP node);
KisNodeSP currentNode() const;
......@@ -201,7 +201,7 @@ public:
void notifyCurrentStateChanged(bool isCurrent);
void setShowFloatingMessage(bool show);
void showFloatingMessageImpl(const QString message, const QIcon& icon, int timeout, KisFloatingMessage::Priority priority, int alignment);
void showFloatingMessageImpl(const QString &message, const QIcon& icon, int timeout, KisFloatingMessage::Priority priority, int alignment);
public Q_SLOTS:
......
......@@ -1229,7 +1229,7 @@ void KisViewManager::guiUpdateTimeout()
d->actionManager.updateGUI();
}
void KisViewManager::showFloatingMessage(const QString message, const QIcon& icon, int timeout, KisFloatingMessage::Priority priority, int alignment)
void KisViewManager::showFloatingMessage(const QString &message, const QIcon& icon, int timeout, KisFloatingMessage::Priority priority, int alignment)
{
if (!d->currentImageView) return;
d->currentImageView->showFloatingMessageImpl(message, icon, timeout, priority, alignment);
......
......@@ -177,7 +177,7 @@ public:
/// shows a floating message in the top right corner of the canvas
void showFloatingMessage(const QString message, const QIcon& icon, int timeout = 4500,
void showFloatingMessage(const QString &message, const QIcon& icon, int timeout = 4500,
KisFloatingMessage::Priority priority = KisFloatingMessage::Medium,
int alignment = Qt::AlignCenter | Qt::TextWordWrap);
......@@ -211,7 +211,7 @@ public Q_SLOTS:
Q_SIGNALS:
void floatingMessageRequested(QString message, QString iconName);
void floatingMessageRequested(const QString &message, const QString &iconName);
private Q_SLOTS:
......
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