diff options
Diffstat (limited to 'tools/snippets_translate/converter.py')
-rw-r--r-- | tools/snippets_translate/converter.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/snippets_translate/converter.py b/tools/snippets_translate/converter.py index 92c89bdf6..a0650b3af 100644 --- a/tools/snippets_translate/converter.py +++ b/tools/snippets_translate/converter.py @@ -128,6 +128,8 @@ def snippet_translate(x): # that include the string 'new' if "new " in x: x = x.replace("new ", "") + if not x.endswith(")"): # "new Foo" -> "new Foo()" + x += "()" # Handle 'const' # Some variables/functions have the word 'const' so we explicitly |