Update of /cvsroot/openvrml/openvrml/src/libopenvrml/openvrml
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv27722/src/libopenvrml/openvrml
Modified Files:
Tag: OpenVRML-0_16-BRANCH
browser.cpp
Log Message:
Initialize begin and end iterators for the various URI parts to the beginning of the string.
Index: browser.cpp
===================================================================
RCS file: /cvsroot/openvrml/openvrml/src/libopenvrml/openvrml/browser.cpp,v
retrieving revision 1.190
retrieving revision 1.190.2.1
diff -C2 -d -r1.190 -r1.190.2.1
*** browser.cpp 10 Aug 2006 23:10:56 -0000 1.190
--- browser.cpp 18 Aug 2006 20:03:27 -0000 1.190.2.1
***************
*** 3668,3677 ****
}
! uri::uri() OPENVRML_THROW1(std::bad_alloc)
{}
uri::uri(const std::string & str)
OPENVRML_THROW2(openvrml::invalid_url, std::bad_alloc):
! str_(str)
{
using std::string;
--- 3668,3713 ----
}
! uri::uri() OPENVRML_THROW1(std::bad_alloc):
! scheme_begin(this->str_.begin()),
! scheme_end(this->str_.begin()),
! scheme_specific_part_begin(this->str_.begin()),
! scheme_specific_part_end(this->str_.begin()),
! authority_begin(this->str_.begin()),
! authority_end(this->str_.begin()),
! userinfo_begin(this->str_.begin()),
! userinfo_end(this->str_.begin()),
! host_begin(this->str_.begin()),
! host_end(this->str_.begin()),
! port_begin(this->str_.begin()),
! port_end(this->str_.begin()),
! path_begin(this->str_.begin()),
! path_end(this->str_.begin()),
! query_begin(this->str_.begin()),
! query_end(this->str_.begin()),
! fragment_begin(this->str_.begin()),
! fragment_end(this->str_.begin())
{}
uri::uri(const std::string & str)
OPENVRML_THROW2(openvrml::invalid_url, std::bad_alloc):
! str_(str),
! scheme_begin(this->str_.begin()),
! scheme_end(this->str_.begin()),
! scheme_specific_part_begin(this->str_.begin()),
! scheme_specific_part_end(this->str_.begin()),
! authority_begin(this->str_.begin()),
! authority_end(this->str_.begin()),
! userinfo_begin(this->str_.begin()),
! userinfo_end(this->str_.begin()),
! host_begin(this->str_.begin()),
! host_end(this->str_.begin()),
! port_begin(this->str_.begin()),
! port_end(this->str_.begin()),
! path_begin(this->str_.begin()),
! path_end(this->str_.begin()),
! query_begin(this->str_.begin()),
! query_end(this->str_.begin()),
! fragment_begin(this->str_.begin()),
! fragment_end(this->str_.begin())
{
using std::string;
|