From 0cbcba73332ee79e6041febec97575079400267b Mon Sep 17 00:00:00 2001 From: Benjamin Paassen Date: Sun, 8 Feb 2015 19:48:56 +0100 Subject: set the return type of getFieldDescriptorIndex to ssize_t. --- src/core/model/Domain.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/core/model/Domain.hpp') diff --git a/src/core/model/Domain.hpp b/src/core/model/Domain.hpp index 63f4c5d..db3b9e6 100644 --- a/src/core/model/Domain.hpp +++ b/src/core/model/Domain.hpp @@ -503,7 +503,7 @@ public: * @return the index of the FieldDescriptor with the given name or -1 if * no such FieldDescriptor was found. */ - int getFieldDescriptorIndex( + ssize_t getFieldDescriptorIndex( const std::string &name = DEFAULT_FIELD_NAME) const; /** * Returns the index of the given FieldDescriptor or -1 of the given @@ -514,7 +514,7 @@ public: * @return the index of the given FieldDescriptor or -1 of the given * FieldDescriptor is not registered at this Descriptor. */ - int getFieldDescriptorIndex(Handle fd) const; + ssize_t getFieldDescriptorIndex(Handle fd) const; /** * This returns true if this Descriptor has a FieldDescriptor with the -- cgit v1.2.3