From fe630c753edac151b34c03aabbe4104ff7d3832c Mon Sep 17 00:00:00 2001 From: Luca Beltrame Date: Sat, 4 Oct 2014 11:08:22 +0200 Subject: [PATCH] Suppress "discards qualifiers" warning --- src/libdanbooru/danboorupost.cpp | 2 +- src/libdanbooru/danboorupost.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libdanbooru/danboorupost.cpp b/src/libdanbooru/danboorupost.cpp index 95a9003..b5c3aec 100644 --- a/src/libdanbooru/danboorupost.cpp +++ b/src/libdanbooru/danboorupost.cpp @@ -150,7 +150,7 @@ const QUrl DanbooruPost::fileUrl() const return m_url; } -const Danbooru::DanbooruPost::Rating DanbooruPost::rating() const +Danbooru::DanbooruPost::Rating DanbooruPost::rating() const { return m_rating; } diff --git a/src/libdanbooru/danboorupost.h b/src/libdanbooru/danboorupost.h index f1bf2e6..d0e6513 100644 --- a/src/libdanbooru/danboorupost.h +++ b/src/libdanbooru/danboorupost.h @@ -198,7 +198,7 @@ namespace Danbooru { /** * @return The current post's rating. **/ - const Rating rating() const; + Rating rating() const; /** * Set the post's pixmap to a specific QPixmap instance's pointer.