diff options
author | Benjamin Paassen <bpaassen@techfak.uni-bielefeld.de> | 2015-02-08 19:48:56 +0100 |
---|---|---|
committer | Benjamin Paassen <bpaassen@techfak.uni-bielefeld.de> | 2015-02-08 19:48:56 +0100 |
commit | 0cbcba73332ee79e6041febec97575079400267b (patch) | |
tree | cbe8ed47c92911b4657649e46e1d2d9a2fb20e68 /src/core/model/Domain.cpp | |
parent | 5eca67b6cab7031d8203b1403ba5cddaef833e76 (diff) |
set the return type of getFieldDescriptorIndex to ssize_t.
Diffstat (limited to 'src/core/model/Domain.cpp')
-rw-r--r-- | src/core/model/Domain.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/model/Domain.cpp b/src/core/model/Domain.cpp index f45bd27..62ee65d 100644 --- a/src/core/model/Domain.cpp +++ b/src/core/model/Domain.cpp @@ -228,9 +228,9 @@ bool Descriptor::continuePath(Handle<StructuredClass> target, return found; } -int Descriptor::getFieldDescriptorIndex(const std::string &name) const +ssize_t Descriptor::getFieldDescriptorIndex(const std::string &name) const { - int f = 0; + size_t f = 0; for (auto &fd : getFieldDescriptors()) { if (fd->getName() == name) { return f; @@ -240,9 +240,9 @@ int Descriptor::getFieldDescriptorIndex(const std::string &name) const return -1; } -int Descriptor::getFieldDescriptorIndex(Handle<FieldDescriptor> fd) const +ssize_t Descriptor::getFieldDescriptorIndex(Handle<FieldDescriptor> fd) const { - int f = 0; + size_t f = 0; for (auto &fd2 : getFieldDescriptors()) { if (fd == fd2) { return f; |