Skip to content
This repository has been archived by the owner on Feb 12, 2023. It is now read-only.

Commit

Permalink
fix(ui): minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Monsterovich committed May 23, 2019
1 parent 821ed52 commit 161a773
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/platform/desktop_notifications/desktopnotify.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ DesktopNotify::DesktopNotify()
notifyCore.registerApplication(snoreApp);
}

void DesktopNotify::createNotification(const QString& title, const QString &text, Snore::Icon &icon)
void DesktopNotify::createNotification(const QString& title, const QString& text, Snore::Icon& icon)
{
const Settings& s = Settings::getInstance();
if(!(s.getNotify() && s.getDesktopNotify())) {
Expand All @@ -31,12 +31,12 @@ void DesktopNotify::createNotification(const QString& title, const QString &text
notifyCore.broadcastNotification(notify);
}

void DesktopNotify::notifyMessage(const QString title, const QString message)
void DesktopNotify::notifyMessage(const QString& title, const QString& message)
{
createNotification(title, message, snoreIcon);
}

void DesktopNotify::notifyMessagePixmap(const QString title, const QString message, QPixmap avatar)
void DesktopNotify::notifyMessagePixmap(const QString& title, const QString& message, QPixmap avatar)
{
Snore::Icon new_icon(avatar);
createNotification(title, message, new_icon);
Expand Down
6 changes: 3 additions & 3 deletions src/platform/desktop_notifications/desktopnotify.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ class DesktopNotify : public QObject
};

public slots:
void notifyMessage(const QString title, const QString message);
void notifyMessagePixmap(const QString title, const QString message, QPixmap avatar);
void notifyMessage(const QString& title, const QString& message);
void notifyMessagePixmap(const QString& title, const QString& message, QPixmap avatar);
void notifyMessageSimple(const MessageType type);

private:
void createNotification(const QString& title, const QString &text, Snore::Icon &icon);
void createNotification(const QString& title, const QString& text, Snore::Icon& icon);

private:
Snore::SnoreCore& notifyCore;
Expand Down

0 comments on commit 161a773

Please sign in to comment.