[Xmlstorage-commits] SF.net SVN: xmlstorage: [89] trunk/c++
Brought to you by:
martinfuchs
From: <mar...@us...> - 2008-02-07 22:27:53
|
Revision: 89 http://xmlstorage.svn.sourceforge.net/xmlstorage/?rev=89&view=rev Author: martinfuchs Date: 2008-02-07 14:27:25 -0800 (Thu, 07 Feb 2008) Log Message: ----------- std::string constructor for XPath struct Modified Paths: -------------- trunk/c++/xmlstorage.cpp trunk/c++/xmlstorage.h Modified: trunk/c++/xmlstorage.cpp =================================================================== --- trunk/c++/xmlstorage.cpp 2008-02-07 22:19:43 UTC (rev 88) +++ trunk/c++/xmlstorage.cpp 2008-02-07 22:27:25 UTC (rev 89) @@ -220,7 +220,7 @@ } -XPath::XPath(const char* path) +void XPath::init(const char* path) { // Is this an absolute path? if (*path == '/') { Modified: trunk/c++/xmlstorage.h =================================================================== --- trunk/c++/xmlstorage.h 2008-02-07 22:19:43 UTC (rev 88) +++ trunk/c++/xmlstorage.h 2008-02-07 22:27:25 UTC (rev 89) @@ -820,8 +820,11 @@ struct XPath : std::list<XPathElement> { - XPath(const char* path); + XPath(const char* path) {init(path);} + XPath(const std::string path) {init(path.c_str());} + void init(const char* path); + bool _absolute; }; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |