Change-Id: I34bdc6f54e0290f5b416dcf189a6da2cb7e5f543
virtual ~BucketRecordCorruptedException(void) = default;
BucketRecordCorruptedException(const std::string &line)
- : m_line(line), m_lineNumber(0) {}
+ : m_lineNumber(0), m_line(line) {}
BucketRecordCorruptedException withLineNumber(const size_t &lineNumber) const {
BucketRecordCorruptedException copy(*this);
PolicyKey StorageDeserializer::parseKey(const std::string &line, std::size_t &beginToken) {
std::array<std::string, 3> keyFeatures;
- for(auto tokenNum = 0; tokenNum < keyFeatures.size(); ++tokenNum) {
+ for(std::size_t tokenNum = 0; tokenNum < keyFeatures.size(); ++tokenNum) {
auto endToken = line.find(StorageSerializer::fieldSeparator(), beginToken);
if (endToken != std::string::npos) {
keyFeatures[tokenNum] = line.substr(beginToken, endToken - beginToken);