svace: add noexcept to MatchItemSR::addNames 02/201402/4
authorAdrian Szyndela <adrian.s@samsung.com>
Wed, 13 Mar 2019 15:22:39 +0000 (16:22 +0100)
committerAdrian Szyndela <adrian.s@samsung.com>
Fri, 15 Mar 2019 14:03:34 +0000 (15:03 +0100)
commit5c021c6628cb33ce1b11440e49325ddac949aa6d
tree579fd3496ecc79e052d53df1c3dd74afef75787b
parent5ddaf14955ac326bf19c82c29e67a1618ad8fd28
svace: add noexcept to MatchItemSR::addNames

SVACE complains about non-catched out_of_range exception from
boost::string_ref::substr() called by MatchItemSR::addNames().
The code is written in such a way that no exceptions should be trown.
To indicate this, and possibly make SVACE happy, this adds
'noexcept' keyword to addNames().

Change-Id: I5b31cfd201af2267e08587118d2dd54da225d945
src/internal/policy.cpp
src/internal/policy.hpp