diff --git a/src/core/application.cpp b/src/core/application.cpp index c833419..9322a2e 100644 --- a/src/core/application.cpp +++ b/src/core/application.cpp @@ -79,7 +79,7 @@ Hint &Application::hints() return d->m_hint; } -const Hint &Application::consHints() const +const Hint &Application::constHints() const { return d->m_hint; } diff --git a/src/core/application.h b/src/core/application.h index 0e8d967..1993928 100644 --- a/src/core/application.h +++ b/src/core/application.h @@ -45,7 +45,7 @@ public: bool isValid() const; Hint &hints(); - const Hint &consHints() const; + const Hint &constHints() const; private: QExplicitlySharedDataPointer d; diff --git a/src/plugins/backends/freedesktop/freedesktopnotification_backend.cpp b/src/plugins/backends/freedesktop/freedesktopnotification_backend.cpp index 51fdbbf..cf4fc1e 100644 --- a/src/plugins/backends/freedesktop/freedesktopnotification_backend.cpp +++ b/src/plugins/backends/freedesktop/freedesktopnotification_backend.cpp @@ -55,9 +55,9 @@ void FreedesktopBackend::slotNotify ( Notification noti ) hints["urgency"] = (char)noti.priority()+1; } - if(noti.application().hints().contains("desktop-entry")) + if(noti.application().constHints().contains("desktop-entry")) { - hints["desktop-entry"] = noti.application().hints().value("desktop-entry"); + hints["desktop-entry"] = noti.application().constHints().value("desktop-entry"); } uint updateId = 0;