From e0f3ab247371e2313c7a49d2fb3c68b43cfade5f Mon Sep 17 00:00:00 2001 From: Eivind Kvedalen Date: Mon, 31 Aug 2015 23:48:43 +0200 Subject: [PATCH] Mod/Spreadsheet: Removed -Wsign-compare warnings. --- src/Mod/Spreadsheet/App/Expression.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Mod/Spreadsheet/App/Expression.h b/src/Mod/Spreadsheet/App/Expression.h index 51faa9239..7d709fff4 100644 --- a/src/Mod/Spreadsheet/App/Expression.h +++ b/src/Mod/Spreadsheet/App/Expression.h @@ -126,8 +126,7 @@ public: const std::string & getPropertyName() const { return components[propertyIndex].component; } - const Component & getPropertyComponent(int i) const { assert(i >=0 && i < components.size()); return components[propertyIndex + i]; } - + const Component & getPropertyComponent(std::size_t i) const { assert(i < components.size()); return components[propertyIndex + i]; } const std::string & getSubComponent(int i) const { assert(i >= 1); return components[propertyIndex - 1].component; } std::string getSubPathStr() const;