mirror of
https://github.com/jezhiggins/arabica
synced 2025-02-05 20:45:56 +01:00
fixes for older gcc
This commit is contained in:
parent
cd4c50772a
commit
889305618e
2 changed files with 4 additions and 2 deletions
|
@ -92,7 +92,8 @@ public:
|
||||||
private:
|
private:
|
||||||
string_type absolutise(const string_type& baseURI, const string_type& location) const
|
string_type absolutise(const string_type& baseURI, const string_type& location) const
|
||||||
{
|
{
|
||||||
Arabica::io::URI absolute(Arabica::io::URI(baseURI), location);
|
Arabica::io::URI base(string_adaptor::asStdString(baseURI));
|
||||||
|
Arabica::io::URI absolute(base, string_adaptor::asStdString(location));
|
||||||
return string_adaptor::construct_from_utf8(absolute.as_string().c_str());
|
return string_adaptor::construct_from_utf8(absolute.as_string().c_str());
|
||||||
} // absolutise
|
} // absolutise
|
||||||
|
|
||||||
|
|
|
@ -60,7 +60,8 @@ private:
|
||||||
SAX::CatchErrorHandler<std::string> eh;
|
SAX::CatchErrorHandler<std::string> eh;
|
||||||
domParser.setErrorHandler(eh);
|
domParser.setErrorHandler(eh);
|
||||||
|
|
||||||
Arabica::io::URI absolute(Arabica::io::URI(baseURI_), location);
|
Arabica::io::URI base(baseURI_);
|
||||||
|
Arabica::io::URI absolute(base, location);
|
||||||
|
|
||||||
SAX::InputSource<std::string> is(absolute.as_string());
|
SAX::InputSource<std::string> is(absolute.as_string());
|
||||||
domParser.parse(is);
|
domParser.parse(is);
|
||||||
|
|
Loading…
Add table
Reference in a new issue