dont return const QString&

This commit is contained in:
Patrick von Reth 2014-01-12 18:38:29 +01:00
parent 2475802a10
commit ddc5abb1e6
3 changed files with 14 additions and 14 deletions

View File

@ -91,7 +91,7 @@ Notification::~Notification()
{ {
} }
const uint &Notification::id() const uint Notification::id() const
{ {
return d->m_id; return d->m_id;
} }
@ -130,22 +130,22 @@ SnoreFrontend *Notification::source() const
return d->m_source; return d->m_source;
} }
const QString &Notification::application() const QString Notification::application() const
{ {
return d->m_application; return d->m_application;
} }
const QString &Notification::title() const QString Notification::title() const
{ {
return d->m_title; return d->m_title;
} }
const QString &Notification::text() const QString Notification::text() const
{ {
return d->m_text; return d->m_text;
} }
const QString &Notification::alert() const QString Notification::alert() const
{ {
return d->m_alert; return d->m_alert;
} }

View File

@ -62,7 +62,7 @@ public:
Notification &operator=(const Notification &other); Notification &operator=(const Notification &other);
~Notification(); ~Notification();
const uint &id() const; uint id() const;
//timeout in seconds //timeout in seconds
//0 means sticky //0 means sticky
const int &timeout() const; const int &timeout() const;
@ -73,11 +73,11 @@ public:
const Action &actionInvoked() const; const Action &actionInvoked() const;
void setSource(class SnoreFrontend *source); void setSource(class SnoreFrontend *source);
class SnoreFrontend *source() const; class SnoreFrontend *source() const;
const QString &application() const; QString application() const;
const QString &title() const; QString title() const;
const QString &text() const; QString text() const;
const Icon &icon() const; const Icon &icon() const;
const QString &alert() const; QString alert() const;
void setSticky(); void setSticky();
bool sticky() const; bool sticky() const;
const NotificationEnums::Prioritys::prioritys &priority() const; const NotificationEnums::Prioritys::prioritys &priority() const;

View File

@ -51,7 +51,7 @@ signals:
public slots: public slots:
virtual void slotRegisterApplication(const Snore::Application &application ); virtual void slotRegisterApplication(const Snore::Application &application );
virtual void slotDeregisterApplication(const Application &application ); virtual void slotDeregisterApplication(const Snore::Application &application );
virtual void slotNotify ( Snore::Notification notification ) = 0; virtual void slotNotify ( Snore::Notification notification ) = 0;
virtual void slotCloseNotification ( Snore::Notification notification ); virtual void slotCloseNotification ( Snore::Notification notification );