mirror of https://github.com/adamdruppe/arsd.git
use void* instead of ptrdiff_t out of possible GC precise concerns
This commit is contained in:
parent
d0fb5f2e44
commit
e36512f1d4
|
@ -4562,7 +4562,7 @@ class ListWidget : ListWidgetBase {
|
||||||
static struct Option {
|
static struct Option {
|
||||||
string label;
|
string label;
|
||||||
bool selected;
|
bool selected;
|
||||||
ptrdiff_t tag;
|
void* tag;
|
||||||
}
|
}
|
||||||
|
|
||||||
/++
|
/++
|
||||||
|
@ -4660,7 +4660,7 @@ class ListWidget : ListWidgetBase {
|
||||||
mixin OverrideStyle!Style;
|
mixin OverrideStyle!Style;
|
||||||
//mixin Padding!q{2};
|
//mixin Padding!q{2};
|
||||||
|
|
||||||
void addOption(string text, ptrdiff_t tag = 0) {
|
void addOption(string text, void* tag = null) {
|
||||||
options ~= Option(text, false, tag);
|
options ~= Option(text, false, tag);
|
||||||
version(win32_widgets) {
|
version(win32_widgets) {
|
||||||
WCharzBuffer buffer = WCharzBuffer(text);
|
WCharzBuffer buffer = WCharzBuffer(text);
|
||||||
|
|
Loading…
Reference in New Issue