Advertisement
Guest User

Untitled

a guest
Oct 1st, 2012
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Delphi 0.92 KB | None | 0 0
  1.     procedure TMemoryLeakList.Sort;
  2.     begin
  3.       case fSortType of
  4.         stSize:
  5.         begin
  6.           case fSortDirection of
  7.             sdAsc:  inherited sort(sortBySizeProcAsc);
  8.             sdDesc: inherited sort(sortBySizeProcDesc);
  9.           end;
  10.         end;
  11.         stClassName:
  12.         begin
  13.           case fSortDirection of
  14.             sdAsc:  inherited sort(sortByNameProcAsc);
  15.             sdDesc: inherited sort(sortByNameProcDesc);
  16.           end;
  17.         end;
  18.         stCallStackSize:
  19.         begin
  20.           case fSortDirection of
  21.             sdAsc:  inherited sort(sortByCallStackSizeAsc);
  22.             sdDesc: inherited sort(sortByCallStackSizeDesc);
  23.           end;
  24.         end;
  25.         stID:
  26.         begin
  27.           case fSortDirection of
  28.             sdAsc:  inherited sort(sortByIDAsc);
  29.             sdDesc: inherited sort(sortByIDDesc);
  30.           end;
  31.         end;
  32.       end;
  33.     end;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement