Ignore:
Timestamp:
Jul 12, 2007, 2:58:26 AM (17 years ago)
Author:
dai_9181
Message:

コード全体のリファクタリングを実施

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/abdev/BasicCompiler_Common/PESchedule.cpp

    r75 r206  
     1#include "stdafx.h"
     2
    13#include "../BasicCompiler_Common/common.h"
    24
     
    197199
    198200CImportAddrSchedule::CImportAddrSchedule(){
    199     ppdi=(DllProc **)HeapAlloc(hHeap,0,1);
     201    ppdi=(const DllProc **)HeapAlloc(hHeap,0,1);
    200202}
    201203CImportAddrSchedule::~CImportAddrSchedule(){
     
    203205}
    204206
    205 void CImportAddrSchedule::add(DllProc *pDllProc){
    206     ppdi=(DllProc **)HeapReAlloc(hHeap,0,ppdi,(num+1)*sizeof(DllProc *));
     207void CImportAddrSchedule::add(const DllProc *pDllProc){
     208    ppdi=(const DllProc **)HeapReAlloc(hHeap,0,ppdi,(num+1)*sizeof(DllProc *));
    207209    ppdi[num]=pDllProc;
    208210
     
    220222
    221223CSubAddrSchedule::CSubAddrSchedule(){
    222     ppsi=(UserProc **)HeapAlloc(hHeap,0,1);
     224    ppsi=(const UserProc **)HeapAlloc(hHeap,0,1);
    223225    pbCall=(BOOL *)HeapAlloc(hHeap,0,1);
    224226}
     
    228230}
    229231
    230 void CSubAddrSchedule::add(UserProc *pUserProc,BOOL bCall){
     232void CSubAddrSchedule::add(const UserProc *pUserProc,BOOL bCall){
    231233    if(!pUserProc) return;
    232234
    233     ppsi=(UserProc **)HeapReAlloc(hHeap,0,ppsi,(num+1)*sizeof(UserProc *));
     235    ppsi=(const UserProc **)HeapReAlloc(hHeap,0,ppsi,(num+1)*sizeof(UserProc *));
    234236    ppsi[num]=pUserProc;
    235237    pbCall=(BOOL *)HeapReAlloc(hHeap,0,pbCall,(num+1)*sizeof(BOOL));
Note: See TracChangeset for help on using the changeset viewer.