Mercurial > projects > qtd
diff examples/layouts/dynamiclayouts/dialog.d @ 406:778ef7374fb5
Fixes for 64 bit. Now all examples compile with gdc 64 bit
author | Eldar Insafutdinov |
---|---|
date | Fri, 18 Mar 2011 00:30:48 +0000 |
parents | 185df9220ea7 |
children |
line wrap: on
line diff
--- a/examples/layouts/dynamiclayouts/dialog.d Thu Mar 17 19:46:11 2011 +0000 +++ b/examples/layouts/dynamiclayouts/dialog.d Fri Mar 18 00:30:48 2011 +0000 @@ -117,7 +117,7 @@ rotableWidgets = rotableWidgets[1..$] ~ rotableWidgets[0]; - int n = rotableWidgets.length; + auto n = rotableWidgets.length; for (int i = 0; i < n / 2; ++i) { rotableLayout.addWidget(rotableWidgets[n - i - 1], 0, i); rotableLayout.addWidget(rotableWidgets[i], 1, i); @@ -146,7 +146,7 @@ rotableWidgets ~= a2; rotableWidgets ~= a3; - int n = rotableWidgets.length; + auto n = rotableWidgets.length; for (int i = 0; i < n; ++i) connect(rotableWidgets[i], "valueChanged", rotableWidgets[(i + 1) % n], "setValue");