Hello community, here is the log from the commit of package ldapcpplib checked in at Thu Nov 22 11:34:41 CET 2007. -------- --- ldapcpplib/ldapcpplib.changes 2007-11-07 10:53:26.000000000 +0100 +++ /mounts/work_src_done/STABLE/ldapcpplib/ldapcpplib.changes 2007-11-21 11:52:21.000000000 +0100 @@ -1,0 +2,6 @@ +Wed Nov 21 11:51:10 CET 2007 - rhafer@suse.de + +- Make LDAPUrl::getURLString() const, to allow easier usage with + LDAPUrlList::const_iterator. (Bug #341255) + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ ldapcpplib.spec ++++++ --- /var/tmp/diff_new_pack.x25520/_old 2007-11-22 11:33:52.000000000 +0100 +++ /var/tmp/diff_new_pack.x25520/_new 2007-11-22 11:33:52.000000000 +0100 @@ -18,7 +18,7 @@ AutoReqProv: on Summary: C++ API for LDAPv3 Version: 0.0.5 -Release: 1 +Release: 5 Source: %{name}-%{version}.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-build @@ -100,6 +100,9 @@ %{_libdir}/libldapcpp.la %{_defaultdocdir}/%{name}/html %changelog +* Wed Nov 21 2007 - rhafer@suse.de +- Make LDAPUrl::getURLString() const, to allow easier usage with + LDAPUrlList::const_iterator. (Bug #341255) * Wed Nov 07 2007 - rhafer@suse.de - Updated to 0.0.5 (fixes gcc 4.3 issues) - Cleaned up BuildRequires ++++++ ldapcpplib-0.0.5.tar.bz2 ++++++ diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/ldapcpplib-0.0.5/src/LDAPUrl.cpp new/ldapcpplib-0.0.5/src/LDAPUrl.cpp --- old/ldapcpplib-0.0.5/src/LDAPUrl.cpp 2007-02-09 14:07:41.000000000 +0100 +++ new/ldapcpplib-0.0.5/src/LDAPUrl.cpp 2007-11-21 11:14:14.000000000 +0100 @@ -70,7 +70,7 @@ regenerate = true; } -const string& LDAPUrl::getURLString() +const string& LDAPUrl::getURLString() const { if (regenerate){ this->components2Url(); @@ -323,7 +323,7 @@ } -void LDAPUrl::components2Url() +void LDAPUrl::components2Url() const { std::ostringstream url; std::string encoded = ""; @@ -395,7 +395,7 @@ void LDAPUrl::percentEncode( const std::string &src, std::string &dest, - int flags) + int flags) const { std::ostringstream o; o.setf(std::ios::hex, std::ios::basefield); diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/ldapcpplib-0.0.5/src/LDAPUrl.h new/ldapcpplib-0.0.5/src/LDAPUrl.h --- old/ldapcpplib-0.0.5/src/LDAPUrl.h 2007-02-09 14:07:41.000000000 +0100 +++ new/ldapcpplib-0.0.5/src/LDAPUrl.h 2007-11-21 11:14:28.000000000 +0100 @@ -58,7 +58,7 @@ /** * @return The complete URL as a string */ - const std::string& getURLString(); + const std::string& getURLString() const; /** * Set the URL member attribute @@ -140,7 +140,7 @@ */ void percentEncode( const std::string& src, std::string& dest, - int flags=0 ); + int flags=0 ) const; protected : /** @@ -158,13 +158,13 @@ * (this function is mostly for internal use and gets called * automatically whenever necessary) */ - void components2Url(); + void components2Url() const; void string2list(const std::string &src, StringList& sl, bool percentDecode=false); protected : - bool regenerate; + mutable bool regenerate; int m_Port; int m_Scope; std::string m_Host; @@ -172,7 +172,7 @@ std::string m_Filter; StringList m_Attrs; StringList m_Extensions; - std::string m_urlString; + mutable std::string m_urlString; std::string m_Scheme; enum mode { base, attrs, scope, filter, extensions }; }; ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org