From 8e331cfc65b6817a147dfaac4d9c4d01414782ac Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 2 Aug 2012 18:15:49 +0200 Subject: gcc.h: re-add gcc_const and gcc_pure Remove GLib dependency from some headers. --- src/db/SimpleDatabasePlugin.hxx | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src/db/SimpleDatabasePlugin.hxx') diff --git a/src/db/SimpleDatabasePlugin.hxx b/src/db/SimpleDatabasePlugin.hxx index e2d247385..6582118d2 100644 --- a/src/db/SimpleDatabasePlugin.hxx +++ b/src/db/SimpleDatabasePlugin.hxx @@ -26,7 +26,6 @@ #include #include -#include #include #include @@ -40,7 +39,7 @@ class SimpleDatabase : public Database { time_t mtime; public: - G_GNUC_PURE + gcc_pure struct directory *GetRoot() { assert(root != NULL); @@ -49,7 +48,7 @@ public: bool Save(GError **error_r); - G_GNUC_PURE + gcc_pure time_t GetLastModified() const { return mtime; } @@ -70,12 +69,12 @@ public: protected: bool Configure(const struct config_param *param, GError **error_r); - G_GNUC_PURE + gcc_pure bool Check(GError **error_r) const; bool Load(GError **error_r); - G_GNUC_PURE + gcc_pure const struct directory *LookupDirectory(const char *uri) const; }; -- cgit v1.2.3