Permalink
Browse files

remove a branch

  • Loading branch information...
chadaustin committed Apr 18, 2017
1 parent 44ec0df commit 235d3309f94543523f52ebf477f91dc5f8c59473
Showing with 3 additions and 6 deletions.
  1. +3 −6 include/sajson.h
View
@@ -701,7 +701,8 @@ namespace sajson {
result = parse_number(p);
break;
case '"':
- result = parse_string(p);
+ out -= 2;
+ result = parse_string(p, out);
break;
case '[':
@@ -1072,12 +1073,8 @@ namespace sajson {
return TYPE_OBJECT;
}
- parse_result parse_string(char*& p_, size_t* tag = 0) {
+ parse_result parse_string(char*& p_, size_t* tag) {
char* p = p_;
- if (!tag) {
- out -= 2;
- tag = out;
- }
++p; // "
size_t start = p - input.get_data();

0 comments on commit 235d330

Please sign in to comment.