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)
39
39
std::string RemoveWhitespace::evaluate (std::string value,
40
40
Transaction *transaction) {
41
41
42
- long int i = 0 ;
42
+ int64_t i = 0 ;
43
43
44
44
// loop through all the chars
45
- while (i < value.size ()) {
45
+ while (i < value.size ()) {
46
46
// 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 {
51
50
/* if the space is not a whitespace char, increment counter
52
51
counter should not be incremented if a character is erased because
53
52
the index erased will be replaced by the following character */
You can’t perform that action at this time.
0 commit comments