We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b8b3e8 commit 458dba6Copy full SHA for 458dba6
NppJSONViewer/TreeBuilder.cpp
@@ -43,14 +43,14 @@ const char* FALSE_STR = "false";
43
44
bool TreeBuilder::Null()
45
{
46
- return this->String(NULL_STR, sizeof(NULL_STR), true);
+ return this->String(NULL_STR, strlen(NULL_STR), true);
47
}
48
49
bool TreeBuilder::Bool(bool b)
50
51
if (b)
52
- return this->String(TRUE_STR, sizeof(TRUE_STR), true);
53
- return this->String(FALSE_STR, sizeof(FALSE_STR), true);
+ return this->String(TRUE_STR, strlen(TRUE_STR), true);
+ return this->String(FALSE_STR, strlen(FALSE_STR), true);
54
55
56
bool TreeBuilder::Int(int i) { cout << "Int(" << i << ")" << endl; return true; }
0 commit comments