Mercurial > projects > qtd
comparison generator/typesystem_gui.xml @ 414:b2a803c73b89 default tip
Declare tabArray const.
author | David Nadlinger <code@klickverbot.at> |
---|---|
date | Fri, 06 May 2011 13:39:49 +0200 |
parents | bb0c0bbca312 |
children |
comparison
equal
deleted
inserted
replaced
413:bdc08c8391ad | 414:b2a803c73b89 |
---|---|
2071 <remove-default-expression/> | 2071 <remove-default-expression/> |
2072 </modify-argument> | 2072 </modify-argument> |
2073 </modify-function> | 2073 </modify-function> |
2074 | 2074 |
2075 <template name="gui.fontmetrics_tabarray_function"> | 2075 <template name="gui.fontmetrics_tabarray_function"> |
2076 public final %RETURN_TYPE %FUNCTION_NAME(%RECT_ARGUMENTSint flags, string text, int tabStops = 0, int[] tabArray = null) { | 2076 public final %RETURN_TYPE %FUNCTION_NAME(%RECT_ARGUMENTSint flags, string text, int tabStops = 0, in int[] tabArray = null) { |
2077 int* ptr; | 2077 int* ptr; |
2078 if (tabArray != null) { | 2078 if (tabArray != null) { |
2079 auto copy = new int[tabArray.length + 1]; | 2079 auto copy = new int[tabArray.length + 1]; |
2080 copy[0..tabArray.length] = tabArray; | 2080 copy[0..tabArray.length] = tabArray; |
2081 copy[tabArray.length] = 0; | 2081 copy[tabArray.length] = 0; |