diff options
author | Matúš Kukan <matus.kukan@collabora.com> | 2013-12-03 08:19:36 +0100 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2013-12-06 05:43:21 -0600 |
commit | c2f5e09900561d417d53a74fd6bc189cb7d898e1 (patch) | |
tree | 93580181d603dcdcfb73f5950cbed019be8c1a88 /xmlreader/source/xmlreader.cxx | |
parent | 9a37ce189881f12d678fdb054219b13c3e4c7e40 (diff) |
Zip .ui translations per UIConfig target.
Fix installer / scp2 to not ignore directory prefix in 'Name'.
Change-Id: Ib319363c8be73a72029f1ba3833e518e15c55e29
Reviewed-on: https://gerrit.libreoffice.org/6915
Reviewed-by: David Tardon <dtardon@redhat.com>
Tested-by: David Tardon <dtardon@redhat.com>
Diffstat (limited to 'xmlreader/source/xmlreader.cxx')
-rw-r--r-- | xmlreader/source/xmlreader.cxx | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/xmlreader/source/xmlreader.cxx b/xmlreader/source/xmlreader.cxx index 13e278091f86..3e1d24e24530 100644 --- a/xmlreader/source/xmlreader.cxx +++ b/xmlreader/source/xmlreader.cxx @@ -54,6 +54,18 @@ bool isSpace(char c) { } +XmlReader::XmlReader(char const *sStr, size_t nLength) + : fileUrl_("stream") + , fileHandle_(0) +{ + namespaceIris_.push_back(Span("http://www.w3.org/XML/1998/namespace")); + namespaces_.push_back(NamespaceData(Span("xml"), NAMESPACE_XML)); + pos_ = sStr; + end_ = pos_ + nLength; + state_ = STATE_CONTENT; + firstAttribute_ = true; +} + XmlReader::XmlReader(OUString const & fileUrl) SAL_THROW(( css::container::NoSuchElementException, css::uno::RuntimeException)): @@ -99,6 +111,8 @@ XmlReader::XmlReader(OUString const & fileUrl) } XmlReader::~XmlReader() { + if (!fileHandle_) + return; oslFileError e = osl_unmapMappedFile(fileHandle_, fileAddress_, fileSize_); if (e != osl_File_E_None) { SAL_WARN( |