@@ -716,7 +716,7 @@ void WsjcppYamlNode::throw_error(const std::string &sError) {
716716}
717717
718718void WsjcppYamlNode::removeLastCharNewLine (std::string &sLine ) {
719- int nLen = sLine .length ();
719+ size_t nLen = sLine .length ();
720720 if (nLen > 0 && sLine [nLen - 1 ] == ' \n ' ) {
721721 sLine = sLine .substr (0 , nLen - 1 );
722722 }
@@ -766,7 +766,7 @@ std::string WsjcppYamlParsebleLine::getPrefix() {
766766}
767767
768768int WsjcppYamlParsebleLine::getIndent () {
769- return m_sPrefix.length ();
769+ return int ( m_sPrefix.length () );
770770}
771771
772772bool WsjcppYamlParsebleLine::isArrayItem () {
@@ -957,7 +957,7 @@ bool WsjcppYamlParsebleLine::parseLine(const std::string &sLine, std::string &sE
957957bool WsjcppYamlParsebleLine::canTagName (const std::string &sVal ) {
958958 std::string sTrim = sVal ;
959959 sTrim = WsjcppYaml::trim (sTrim );
960- int nLen = sTrim .length ();
960+ size_t nLen = sTrim .length ();
961961 if (nLen == 0 ) {
962962 return false ;
963963 }
@@ -987,7 +987,7 @@ std::string WsjcppYamlParsebleLine::removeStringDoubleQuotes(const std::string &
987987 return sValue ;
988988 }
989989 int nStartPos = 1 ;
990- int nEndPos = sValue .size ()- 1 ;
990+ size_t nEndPos = sValue .size () - 1 ;
991991 std::string sRet = " " ;
992992 bool bEscape = false ;
993993 for (int i = nStartPos; i < nEndPos; i++) {
@@ -1014,7 +1014,7 @@ std::string WsjcppYamlParsebleLine::removeStringSingleQuotes(const std::string &
10141014 return sValue ;
10151015 }
10161016 int nStartPos = 1 ;
1017- int nEndPos = sValue .size ()- 1 ;
1017+ size_t nEndPos = sValue .size () - 1 ;
10181018 std::string sRet = " " ;
10191019 bool bEscape = false ;
10201020 for (int i = nStartPos; i < nEndPos; i++) {
@@ -1411,7 +1411,7 @@ void WsjcppYaml::info(const std::string &TAG, const std::string &sMessage) {
14111411std::vector<std::string> WsjcppYaml::splitToLines (const std::string &sBuffer ) {
14121412 std::vector<std::string> vLines;
14131413 std::string sLine = " " ;
1414- int nSize = sBuffer .length ();
1414+ size_t nSize = sBuffer .length ();
14151415 for (int i = 0 ; i < nSize; i++) {
14161416 char c = sBuffer [i];
14171417 if (c == ' \n ' ) {
0 commit comments