File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
src/actions/transformations Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -39,15 +39,14 @@ RemoveWhitespace::RemoveWhitespace(std::string action)
3939std::string RemoveWhitespace::evaluate (std::string value,
4040 Transaction *transaction) {
4141
42- long int i = 0 ;
42+ int64_t i = 0 ;
4343
4444 // loop through all the chars
45- while (i < value.size ()) {
45+ while (i < value.size ()) {
4646 // remove whitespaces and non breaking spaces (NBSP)
47- if (isspace (value[i])||(value[i] == NBSP)) {
48- value.erase (i, 1 );
49- }
50- else {
47+ if (isspace (value[i]) || (value[i] == NBSP)) {
48+ value.erase (i, 1 );
49+ } else {
5150 /* if the space is not a whitespace char, increment counter
5251 counter should not be incremented if a character is erased because
5352 the index erased will be replaced by the following character */
You can’t perform that action at this time.
0 commit comments