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/Document.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/core/model/Document.cpp') diff --git a/src/core/model/Document.cpp b/src/core/model/Document.cpp index 4579383..bcff41b 100644 --- a/src/core/model/Document.cpp +++ b/src/core/model/Document.cpp @@ -274,7 +274,7 @@ void DocumentEntity::setAttributes(const Variant &a) static int enforceGetFieldDescriptorIndex(Handle desc, const std::string &fieldName) { - int idx = desc->getFieldDescriptorIndex(fieldName); + ssize_t idx = desc->getFieldDescriptorIndex(fieldName); if (idx == -1) { throw OusiaException( std::string("Descriptor \"") + desc->getName() + @@ -286,7 +286,7 @@ static int enforceGetFieldDescriptorIndex(Handle desc, static int enforceGetFieldDescriptorIndex( Handle desc, Handle fieldDescriptor) { - int idx = desc->getFieldDescriptorIndex(fieldDescriptor); + ssize_t idx = desc->getFieldDescriptorIndex(fieldDescriptor); if (idx == -1) { throw OusiaException(std::string("Descriptor \"") + desc->getName() + -- cgit v1.2.3