aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Saleem Abdulrasool <compnerd@compnerd.org> 2013-02-26 20:09:31 -0800
committerAvatar Saleem Abdulrasool <compnerd@compnerd.org> 2013-03-02 08:59:14 -0800
commitdd4d716deb18da1f4336d88e8007456ab4d31303 (patch)
tree2f4fb9ec6ef255a9bc90bb6afe5c61d1fb7cdc1b
parentf5f4be355a65825de06a3c20c76f5b74c1f20837 (diff)
downloadpaludis-dd4d716deb18da1f4336d88e8007456ab4d31303.tar.gz
paludis-dd4d716deb18da1f4336d88e8007456ab4d31303.tar.xz
fix nonnull attribute
Parameter 1 is the implicit this provided by C++ in instance methods. Offset the parameter index to account for the thiscall method.
-rw-r--r--paludis/hooker.hh2
1 files changed, 1 insertions, 1 deletions
diff --git a/paludis/hooker.hh b/paludis/hooker.hh
index 322e0ab..d64898d 100644
--- a/paludis/hooker.hh
+++ b/paludis/hooker.hh
@@ -96,7 +96,7 @@ namespace paludis
///\name Basic operations
///\{
- Hooker(const Environment * const) PALUDIS_ATTRIBUTE((nonnull(1)));
+ Hooker(const Environment * const) PALUDIS_ATTRIBUTE((nonnull(2)));
~Hooker();
Hooker(const Hooker &) = delete;