mirror of
https://github.com/kiwix/kiwix-tools.git
synced 2025-09-26 13:50:33 -04:00
+ fix new CTPP2TextLoader class
This commit is contained in:
parent
83d0f749f8
commit
d4df7f095c
@ -81,11 +81,9 @@ public:
|
|||||||
@brief A destructor
|
@brief A destructor
|
||||||
*/
|
*/
|
||||||
~CTPP2TextLoader() throw();
|
~CTPP2TextLoader() throw();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
/** Template body */
|
std::string templateText;
|
||||||
CHAR_P sTemplate;
|
|
||||||
/** Template size */
|
|
||||||
UINT_32 iTemplateSize;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace CTPP
|
} // namespace CTPP
|
||||||
|
@ -58,8 +58,7 @@ CTPP2SourceLoader * CTPP2TextLoader::Clone()
|
|||||||
//
|
//
|
||||||
// Constructor
|
// Constructor
|
||||||
//
|
//
|
||||||
CTPP2TextLoader::CTPP2TextLoader(): sTemplate(NULL), iTemplateSize(0)
|
CTPP2TextLoader::CTPP2TextLoader() {
|
||||||
{
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
@ -67,6 +66,7 @@ CTPP2TextLoader::CTPP2TextLoader(): sTemplate(NULL), iTemplateSize(0)
|
|||||||
//
|
//
|
||||||
INT_32 CTPP2TextLoader::LoadTemplate(CCHAR_P szTemplateName)
|
INT_32 CTPP2TextLoader::LoadTemplate(CCHAR_P szTemplateName)
|
||||||
{
|
{
|
||||||
|
this->templateText = std::string(szTemplateName);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -75,8 +75,8 @@ INT_32 CTPP2TextLoader::LoadTemplate(CCHAR_P szTemplateName)
|
|||||||
//
|
//
|
||||||
CCHAR_P CTPP2TextLoader::GetTemplate(UINT_32 & iITemplateSize)
|
CCHAR_P CTPP2TextLoader::GetTemplate(UINT_32 & iITemplateSize)
|
||||||
{
|
{
|
||||||
iITemplateSize = this->iTemplateSize;
|
iITemplateSize = this->templateText.size();
|
||||||
return sTemplate;
|
return this->templateText.data();
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
|
Loading…
x
Reference in New Issue
Block a user