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/Overload.cpp

    r182 r206  
     1#include "stdafx.h"
     2
    13#include "../BasicCompiler_Common/common.h"
    24
     
    79#endif
    810
    9 UserProc *OverloadSolutionWithStrParam(
     11const UserProc *OverloadSolutionWithStrParam(
    1012    const char *name,
    11     std::vector<UserProc *> &subs,
     13    std::vector<const UserProc *> &subs,
    1214    const char *Parameter,
    1315    const char *ObjectName){
     
    2628
    2729        char MethodName[VN_SIZE];
    28         if( !CClass::SplitName( name, NULL, MethodName ) ) lstrcpy( MethodName, name );
     30        if( !SplitMemberName( name, NULL, MethodName ) ) lstrcpy( MethodName, name );
    2931/*
    3032        //メソッドの場合は静的かどうかを調べる
     
    3941
    4042
    41         UserProc *pUserProc;
    42         pUserProc=pobj_parameter->OverloadSolution(name,subs);
     43        const UserProc *pUserProc = pobj_parameter->OverloadSolution(name,subs);
    4344
    4445
     
    4950        return pUserProc;
    5051}
    51 UserProc *OverloadSolution(
     52const UserProc *OverloadSolution(
    5253    const char *name,
    53     std::vector<UserProc *> &subs,
     54    std::vector<const UserProc *> &subs,
    5455    const Parameters &params,
    5556    const Type &returnType ){
     
    6667        }
    6768
    68         UserProc *pUserProc;
    69         pUserProc=pobj_Parameter->OverloadSolution(name,subs);
     69        const UserProc *pUserProc = pobj_Parameter->OverloadSolution(name,subs);
    7070
    7171        delete pobj_Parameter;
Note: See TracChangeset for help on using the changeset viewer.