fixes for older gcc

This commit is contained in:
jez 2007-09-28 08:30:16 +00:00
parent cd4c50772a
commit 889305618e
2 changed files with 4 additions and 2 deletions

View file

@ -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

View file

@ -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);