From 2470e399a666b58a3aec2e077b8a0e538d419590 Mon Sep 17 00:00:00 2001 From: Valentin Noel Date: Thu, 12 Sep 2013 16:04:32 +0200 Subject: [PATCH] add minor modifications to SpecNode for const methods issue #28 --- libraries/specReader/src/SpecNode/SpecNode.cpp | 4 ++-- libraries/specReader/src/SpecNode/SpecNode.hpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/libraries/specReader/src/SpecNode/SpecNode.cpp b/libraries/specReader/src/SpecNode/SpecNode.cpp index a7d5aa8..58eae79 100644 --- a/libraries/specReader/src/SpecNode/SpecNode.cpp +++ b/libraries/specReader/src/SpecNode/SpecNode.cpp @@ -43,12 +43,12 @@ std::string SpecNode::getCount() const return getProperty( kCount, "" ); } -std::string SpecNode::getRequired() +std::string SpecNode::getRequired() const { return getProperty( kRequired, "" ); } -std::string SpecNode::getGroupSize() +std::string SpecNode::getGroupSize() const { return getProperty( kGroupSize, "" ); } diff --git a/libraries/specReader/src/SpecNode/SpecNode.hpp b/libraries/specReader/src/SpecNode/SpecNode.hpp index 39bb812..c942f01 100644 --- a/libraries/specReader/src/SpecNode/SpecNode.hpp +++ b/libraries/specReader/src/SpecNode/SpecNode.hpp @@ -23,7 +23,7 @@ class SpecNode std::string getDisplayType() const; std::string getCount() const; - std::string getRequired(); + std::string getRequired() const; std::vector< std::string > getValues() const; @@ -37,7 +37,7 @@ class SpecNode bool isOrdered() const; bool hasGroup() const; - std::string getGroupSize(); + std::string getGroupSize() const; SpecNode next() const; SpecNode firstChild() const;