Line | |
---|
1 | #include "stdafx.h"
|
---|
2 |
|
---|
3 | ExpandedTemplateClass::~ExpandedTemplateClass()
|
---|
4 | {
|
---|
5 | if( pClass )
|
---|
6 | {
|
---|
7 | delete pClass;
|
---|
8 | }
|
---|
9 | }
|
---|
10 |
|
---|
11 | bool ExpandedTemplateClass::Resolve( const ObjectModule &resolver, ResolveErrors &resolveErrors )
|
---|
12 | {
|
---|
13 | if( pClass->IsNeedResolve() )
|
---|
14 | {
|
---|
15 | CClass *pTempClass = const_cast<CClass *>(resolver.meta.GetClasses().FindLike( pClass ));
|
---|
16 | if( pTempClass )
|
---|
17 | {
|
---|
18 | this->pClass = pTempClass;
|
---|
19 | }
|
---|
20 | else
|
---|
21 | {
|
---|
22 | resolveErrors.Add( ResolveError( this->pClass->GetRelationalObjectModuleIndex(), this->pClass->GetFullName() ) );
|
---|
23 | }
|
---|
24 | }
|
---|
25 |
|
---|
26 | BOOST_FOREACH( Type &actualType, actualTypes )
|
---|
27 | {
|
---|
28 | actualType.Resolve( resolver, resolveErrors );
|
---|
29 | }
|
---|
30 |
|
---|
31 | return true;
|
---|
32 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.