Kaydet (Commit) 8ef9d651 authored tarafından Kohei Yoshida's avatar Kohei Yoshida

Remove inline methods from the header.

Change-Id: Ie2cff194c1db5eaa992c4bcaaa06ec9a419d85a7
üst 4ba42fc8
...@@ -81,6 +81,9 @@ static int call_callbackExternalEntityRef( XML_Parser parser, ...@@ -81,6 +81,9 @@ static int call_callbackExternalEntityRef( XML_Parser parser,
namespace sax_fastparser { namespace sax_fastparser {
NameWithToken::NameWithToken(const OUString& sName, const sal_Int32& nToken) :
msName(sName), mnToken(nToken) {}
SaxContext::SaxContext( sal_Int32 nElementToken, const OUString& aNamespace, const OUString& aElementName ): SaxContext::SaxContext( sal_Int32 nElementToken, const OUString& aNamespace, const OUString& aElementName ):
mnElementToken(nElementToken) mnElementToken(nElementToken)
{ {
...@@ -847,6 +850,21 @@ bool FastSaxParser::consume(EventList *pEventList) ...@@ -847,6 +850,21 @@ bool FastSaxParser::consume(EventList *pEventList)
return true; return true;
} }
void FastSaxParser::pushEntity( const Entity& rEntity )
{
maEntities.push( rEntity );
}
void FastSaxParser::popEntity()
{
maEntities.pop();
}
Entity& FastSaxParser::getEntity()
{
return maEntities.top();
}
// starts parsing with actual parser ! // starts parsing with actual parser !
void FastSaxParser::parse() void FastSaxParser::parse()
{ {
......
...@@ -58,8 +58,8 @@ struct NameWithToken ...@@ -58,8 +58,8 @@ struct NameWithToken
{ {
OUString msName; OUString msName;
sal_Int32 mnToken; sal_Int32 mnToken;
NameWithToken(const OUString& sName, const sal_Int32& nToken):
msName(sName), mnToken(nToken) {} NameWithToken(const OUString& sName, const sal_Int32& nToken);
}; };
typedef std::vector<Event> EventList; typedef std::vector<Event> EventList;
...@@ -193,9 +193,9 @@ public: ...@@ -193,9 +193,9 @@ public:
const XML_Char *systemId, const XML_Char *publicId, const XML_Char *systemId, const XML_Char *publicId,
const XML_Char *notationName); const XML_Char *notationName);
void pushEntity( const Entity& rEntity ) { maEntities.push( rEntity ); } void pushEntity( const Entity& rEntity );
void popEntity() { maEntities.pop(); } void popEntity();
Entity& getEntity() { return maEntities.top(); } Entity& getEntity();
void parse(); void parse();
void produce( CallbackType aType ); void produce( CallbackType aType );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment