aboutsummaryrefslogtreecommitdiff
path: root/paludis/repositories/virtuals
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2009-10-14 21:40:20 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2009-10-14 21:40:20 +0100
commite3cce2ea1add93fd66450100c7e413abc6f0b70c (patch)
tree27e991a332003622aaaaf02a2e626df04d7cc32c /paludis/repositories/virtuals
parent6945cb45acb4f215f347cc0bbc7a55d10ea054b1 (diff)
downloadpaludis-e3cce2ea1add93fd66450100c7e413abc6f0b70c.tar.gz
paludis-e3cce2ea1add93fd66450100c7e413abc6f0b70c.tar.xz
Make some hook performs non-const
Diffstat (limited to 'paludis/repositories/virtuals')
-rw-r--r--paludis/repositories/virtuals/installed_virtuals_repository.cc2
-rw-r--r--paludis/repositories/virtuals/installed_virtuals_repository.hh2
-rw-r--r--paludis/repositories/virtuals/virtuals_repository.cc2
-rw-r--r--paludis/repositories/virtuals/virtuals_repository.hh2
4 files changed, 4 insertions, 4 deletions
diff --git a/paludis/repositories/virtuals/installed_virtuals_repository.cc b/paludis/repositories/virtuals/installed_virtuals_repository.cc
index dd7b30d6d..f676e6dfc 100644
--- a/paludis/repositories/virtuals/installed_virtuals_repository.cc
+++ b/paludis/repositories/virtuals/installed_virtuals_repository.cc
@@ -236,7 +236,7 @@ InstalledVirtualsRepository::invalidate_masks()
}
HookResult
-InstalledVirtualsRepository::perform_hook(const Hook & hook) const
+InstalledVirtualsRepository::perform_hook(const Hook & hook)
{
Context context("When performing hook '" + stringify(hook.name()) + "' for repository '"
+ stringify(name()) + "':");
diff --git a/paludis/repositories/virtuals/installed_virtuals_repository.hh b/paludis/repositories/virtuals/installed_virtuals_repository.hh
index 5cfeaf795..d99bfc2b0 100644
--- a/paludis/repositories/virtuals/installed_virtuals_repository.hh
+++ b/paludis/repositories/virtuals/installed_virtuals_repository.hh
@@ -82,7 +82,7 @@ namespace paludis
virtual bool can_be_favourite_repository() const;
- HookResult perform_hook(const Hook &) const
+ HookResult perform_hook(const Hook &)
PALUDIS_ATTRIBUTE((warn_unused_result));
/* Repository */
diff --git a/paludis/repositories/virtuals/virtuals_repository.cc b/paludis/repositories/virtuals/virtuals_repository.cc
index ced232da4..d4dacd9f9 100644
--- a/paludis/repositories/virtuals/virtuals_repository.cc
+++ b/paludis/repositories/virtuals/virtuals_repository.cc
@@ -459,7 +459,7 @@ VirtualsRepository::populate_sets() const
}
HookResult
-VirtualsRepository::perform_hook(const Hook &) const
+VirtualsRepository::perform_hook(const Hook &)
{
return make_named_values<HookResult>(value_for<n::max_exit_status>(0), value_for<n::output>(""));
}
diff --git a/paludis/repositories/virtuals/virtuals_repository.hh b/paludis/repositories/virtuals/virtuals_repository.hh
index 175e3ea76..a96ec4845 100644
--- a/paludis/repositories/virtuals/virtuals_repository.hh
+++ b/paludis/repositories/virtuals/virtuals_repository.hh
@@ -122,7 +122,7 @@ namespace paludis
///\}
- virtual HookResult perform_hook(const Hook & hook) const
+ virtual HookResult perform_hook(const Hook & hook)
PALUDIS_ATTRIBUTE((warn_unused_result));
};
}