mirror of
https://github.com/jezhiggins/arabica
synced 2025-01-17 18:12:04 +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:
|
||||
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());
|
||||
} // absolutise
|
||||
|
||||
|
|
|
@ -60,7 +60,8 @@ private:
|
|||
SAX::CatchErrorHandler<std::string> 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());
|
||||
domParser.parse(is);
|
||||
|
|
Loading…
Reference in a new issue