Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
senf
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
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
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
wiback
senf
Commits
e0d1c822
Commit
e0d1c822
authored
18 years ago
by
g0dil
Browse files
Options
Downloads
Patches
Plain Diff
Fix SocketHandle const-ness bug (where did this bug come from ??)
parent
da53432c
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Socket/SocketHandle.cc
+5
-5
5 additions, 5 deletions
Socket/SocketHandle.cc
with
5 additions
and
5 deletions
Socket/SocketHandle.cc
+
5
−
5
View file @
e0d1c822
...
...
@@ -78,7 +78,7 @@ prefix_ void senf::SocketBody::state(SocketStateMap & map, unsigned lod)
// senf::detail::StateMapOrdering
namespace
{
bool
contains
(
std
::
string
::
iterator
b
,
std
::
string
::
iterator
e
,
char
c
)
bool
contains
(
std
::
string
::
const_
iterator
b
,
std
::
string
::
const_
iterator
e
,
char
c
)
{
for
(;
b
!=
e
;
++
b
)
if
(
*
b
==
c
)
...
...
@@ -91,10 +91,10 @@ prefix_ bool senf::detail::StateMapOrdering::operator()(std::string const & a1,
std
::
string
const
&
a2
)
const
{
std
::
string
::
iterator
i1
(
a1
.
begin
());
std
::
string
::
iterator
const
i1_end
(
a1
.
end
());
std
::
string
::
iterator
i2
(
a2
.
begin
());
std
::
string
::
iterator
const
i2_end
(
a2
.
end
());
std
::
string
::
const_
iterator
i1
(
a1
.
begin
());
std
::
string
::
const_
iterator
const
i1_end
(
a1
.
end
());
std
::
string
::
const_
iterator
i2
(
a2
.
begin
());
std
::
string
::
const_
iterator
const
i2_end
(
a2
.
end
());
for
(;
i1
!=
i1_end
&&
i2
!=
i2_end
&&
*
i1
==
*
i2
;
++
i1
,
++
i2
)
;
if
(
i1
==
i1_end
)
{
if
(
i2
==
i2_end
)
...
...
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