Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
OpenLDAP
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
James Lowden
OpenLDAP
Commits
727b3431
Commit
727b3431
authored
17 years ago
by
Quanah Gibson-Mount
Browse files
Options
Downloads
Patches
Plain Diff
getURLString() is const now to avoid uneeded copying when using UrlLists
parent
8a1e7a4b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
contrib/ldapc++/src/LDAPUrl.cpp
+3
-3
3 additions, 3 deletions
contrib/ldapc++/src/LDAPUrl.cpp
contrib/ldapc++/src/LDAPUrl.h
+5
-5
5 additions, 5 deletions
contrib/ldapc++/src/LDAPUrl.h
with
8 additions
and
8 deletions
contrib/ldapc++/src/LDAPUrl.cpp
+
3
−
3
View file @
727b3431
...
@@ -70,7 +70,7 @@ void LDAPUrl::setScope( const std::string &scope )
...
@@ -70,7 +70,7 @@ void LDAPUrl::setScope( const std::string &scope )
regenerate
=
true
;
regenerate
=
true
;
}
}
const
string
&
LDAPUrl
::
getURLString
()
const
string
&
LDAPUrl
::
getURLString
()
const
{
{
if
(
regenerate
){
if
(
regenerate
){
this
->
components2Url
();
this
->
components2Url
();
...
@@ -323,7 +323,7 @@ void LDAPUrl::string2list(const std::string &src, StringList& sl,
...
@@ -323,7 +323,7 @@ void LDAPUrl::string2list(const std::string &src, StringList& sl,
}
}
void
LDAPUrl
::
components2Url
()
void
LDAPUrl
::
components2Url
()
const
{
{
std
::
ostringstream
url
;
std
::
ostringstream
url
;
std
::
string
encoded
=
""
;
std
::
string
encoded
=
""
;
...
@@ -395,7 +395,7 @@ void LDAPUrl::components2Url()
...
@@ -395,7 +395,7 @@ void LDAPUrl::components2Url()
void
LDAPUrl
::
percentEncode
(
const
std
::
string
&
src
,
void
LDAPUrl
::
percentEncode
(
const
std
::
string
&
src
,
std
::
string
&
dest
,
std
::
string
&
dest
,
int
flags
)
int
flags
)
const
{
{
std
::
ostringstream
o
;
std
::
ostringstream
o
;
o
.
setf
(
std
::
ios
::
hex
,
std
::
ios
::
basefield
);
o
.
setf
(
std
::
ios
::
hex
,
std
::
ios
::
basefield
);
...
...
This diff is collapsed.
Click to expand it.
contrib/ldapc++/src/LDAPUrl.h
+
5
−
5
View file @
727b3431
...
@@ -58,7 +58,7 @@ class LDAPUrl{
...
@@ -58,7 +58,7 @@ class LDAPUrl{
/**
/**
* @return The complete URL as a string
* @return The complete URL as a string
*/
*/
const
std
::
string
&
getURLString
();
const
std
::
string
&
getURLString
()
const
;
/**
/**
* Set the URL member attribute
* Set the URL member attribute
...
@@ -140,7 +140,7 @@ class LDAPUrl{
...
@@ -140,7 +140,7 @@ class LDAPUrl{
*/
*/
void
percentEncode
(
const
std
::
string
&
src
,
void
percentEncode
(
const
std
::
string
&
src
,
std
::
string
&
dest
,
std
::
string
&
dest
,
int
flags
=
0
);
int
flags
=
0
)
const
;
protected
:
protected
:
/**
/**
...
@@ -158,13 +158,13 @@ class LDAPUrl{
...
@@ -158,13 +158,13 @@ class LDAPUrl{
* (this function is mostly for internal use and gets called
* (this function is mostly for internal use and gets called
* automatically whenever necessary)
* automatically whenever necessary)
*/
*/
void
components2Url
();
void
components2Url
()
const
;
void
string2list
(
const
std
::
string
&
src
,
StringList
&
sl
,
void
string2list
(
const
std
::
string
&
src
,
StringList
&
sl
,
bool
percentDecode
=
false
);
bool
percentDecode
=
false
);
protected
:
protected
:
bool
regenerate
;
mutable
bool
regenerate
;
int
m_Port
;
int
m_Port
;
int
m_Scope
;
int
m_Scope
;
std
::
string
m_Host
;
std
::
string
m_Host
;
...
@@ -172,7 +172,7 @@ class LDAPUrl{
...
@@ -172,7 +172,7 @@ class LDAPUrl{
std
::
string
m_Filter
;
std
::
string
m_Filter
;
StringList
m_Attrs
;
StringList
m_Attrs
;
StringList
m_Extensions
;
StringList
m_Extensions
;
std
::
string
m_urlString
;
mutable
std
::
string
m_urlString
;
std
::
string
m_Scheme
;
std
::
string
m_Scheme
;
enum
mode
{
base
,
attrs
,
scope
,
filter
,
extensions
};
enum
mode
{
base
,
attrs
,
scope
,
filter
,
extensions
};
};
};
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment