if ( idx )
*idx = n;
}
+ else if ( idx )
+ {
+ // different from any valid index
+ *idx = (size_t)-1;
+ }
return s;
}
count++;
if ( vrb.IsSameAs(wxT("open")))
{
- verbs->Insert(vrb, 0u);
- commands ->Insert(cmd, 0u);
+ if ( verbs )
+ verbs->Insert(vrb, 0u);
+ if ( commands )
+ commands ->Insert(cmd, 0u);
}
else
{
- verbs->Add(vrb);
- commands->Add(cmd);
+ if ( verbs )
+ verbs->Add(vrb);
+ if ( commands )
+ commands->Add(cmd);
}
}
}