瀏覽代碼

Fehler im JSONParser behoben

kolja 5 年之前
父節點
當前提交
d4f1efb062
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      JSON.cpp

+ 1 - 1
JSON.cpp

@@ -359,7 +359,7 @@ Text Parser::removeWhitespace( const char *str )
 
 JSONValue Parser::getValue( const char *str )
 {
-    Text string( str );
+    Text string = Parser::removeWhitespace( str );
     if( string.istGleich( "true" ) )
         return JSONBool( 1 );
     if( string.istGleich( "false" ) )