Changeset 78

Show
Ignore:
Timestamp:
03/19/09 14:20:04 (3 years ago)
Author:
Chris Miller
Message:

Fixed foreach over ListBox?.SelectedObjectCollection? selectedItems

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/win32/dfl/listbox.d

    r65 r78  
    289289         
    290290         
    291         private int myOpApply(int delegate(inout Object) dg) 
     291        // Used internally. 
     292        int _opApply(int delegate(inout Object) dg) // package 
    292293        { 
    293294            int result = 0; 
     
    319320         
    320321         
    321         private int myOpApply(int delegate(inout Dstring) dg) 
     322        // Used internally. 
     323        int _opApply(int delegate(inout Dstring) dg) // package 
    322324        { 
    323325            int result = 0; 
     
    352354        } 
    353355         
    354         mixin OpApplyAddIndex!(myOpApply, Dstring); 
    355          
    356         mixin OpApplyAddIndex!(myOpApply, Object); 
     356        mixin OpApplyAddIndex!(_opApply, Dstring); 
     357         
     358        mixin OpApplyAddIndex!(_opApply, Object); 
    357359         
    358360        // Had to do it this way because: DMD 1.028: -H is broken for mixin identifiers 
    359361        // Note that this way probably prevents opApply from being overridden. 
    360         alias myOpApply opApply; 
     362        alias _opApply opApply; 
    361363         
    362364