Mailinglist Archive: yast-commit (2114 mails)

< Previous Next >
[yast-commit] r58780 - /trunk/ldap-server/src/lib/slapd-config.cpp
  • From: rhafer@xxxxxxxxxxxxxxxx
  • Date: Fri, 25 Sep 2009 12:59:50 -0000
  • Message-id: <E1MrAOs-00072A-2V@xxxxxxxxxxxxxxxx>
Author: rhafer
Date: Fri Sep 25 14:59:49 2009
New Revision: 58780

URL: http://svn.opensuse.org/viewcvs/yast?rev=58780&view=rev
Log:
There is a helper function for splitting of the index prefix from the nameing
attribute

Modified:
trunk/ldap-server/src/lib/slapd-config.cpp

Modified: trunk/ldap-server/src/lib/slapd-config.cpp
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/ldap-server/src/lib/slapd-config.cpp?rev=58780&r1=58779&r2=58780&view=diff
==============================================================================
--- trunk/ldap-server/src/lib/slapd-config.cpp (original)
+++ trunk/ldap-server/src/lib/slapd-config.cpp Fri Sep 25 14:59:49 2009
@@ -1281,16 +1281,8 @@
{
throw std::runtime_error( "Entry '" + dn + "' does not define any
objectclasses or attributetypes." );
}
- if ( name[0] == '{' )
- {
- std::string::size_type pos = name.find('}');
- std::istringstream indexstr(name.substr(1, pos-1));
- indexstr >> entryIndex;
- m_name = name.substr( pos+1, std::string::npos );
- } else {
- m_name = name;
- entryIndex = 0;
- }
+
+ entryIndex = splitIndexFromString( name, m_name );
}
OlcSchemaConfig::OlcSchemaConfig(const LDAPEntry &e1, const LDAPEntry &e2) :
OlcConfigEntry(e1, e2)
{

--
To unsubscribe, e-mail: yast-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages