summaryrefslogtreecommitdiff
path: root/sax
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@collabora.com>2013-12-02 17:22:14 -0500
committerKohei Yoshida <kohei.yoshida@collabora.com>2013-12-02 19:32:28 -0500
commit8ef9d651770ef8423651b9163007975d16449fd3 (patch)
treeeebf7f11d08e375ef9cc299537cb63bbab6f0694 /sax
parent4ba42fc8dfb085ffc1a79365917a05e007d5be32 (diff)
Remove inline methods from the header.
Change-Id: Ie2cff194c1db5eaa992c4bcaaa06ec9a419d85a7
Diffstat (limited to 'sax')
-rw-r--r--sax/source/fastparser/fastparser.cxx18
-rw-r--r--sax/source/fastparser/fastparser.hxx10
2 files changed, 23 insertions, 5 deletions
diff --git a/sax/source/fastparser/fastparser.cxx b/sax/source/fastparser/fastparser.cxx
index caf4ec1aa577..75974b8befa0 100644
--- a/sax/source/fastparser/fastparser.cxx
+++ b/sax/source/fastparser/fastparser.cxx
@@ -81,6 +81,9 @@ static int call_callbackExternalEntityRef( XML_Parser parser,
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 ):
mnElementToken(nElementToken)
{
@@ -847,6 +850,21 @@ bool FastSaxParser::consume(EventList *pEventList)
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 !
void FastSaxParser::parse()
{
diff --git a/sax/source/fastparser/fastparser.hxx b/sax/source/fastparser/fastparser.hxx
index 6888cef91b37..2943509e8ff2 100644
--- a/sax/source/fastparser/fastparser.hxx
+++ b/sax/source/fastparser/fastparser.hxx
@@ -58,8 +58,8 @@ struct NameWithToken
{
OUString msName;
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;
@@ -193,9 +193,9 @@ public:
const XML_Char *systemId, const XML_Char *publicId,
const XML_Char *notationName);
- void pushEntity( const Entity& rEntity ) { maEntities.push( rEntity ); }
- void popEntity() { maEntities.pop(); }
- Entity& getEntity() { return maEntities.top(); }
+ void pushEntity( const Entity& rEntity );
+ void popEntity();
+ Entity& getEntity();
void parse();
void produce( CallbackType aType );