Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
graph-tool
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
43
Issues
43
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tiago Peixoto
graph-tool
Commits
42a4170e
Commit
42a4170e
authored
Aug 28, 2020
by
Alex Henrie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Turn UrnSampler._temp into a local variable
parent
9c3246a4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
src/graph/generation/urn_sampler.hh
src/graph/generation/urn_sampler.hh
+2
-3
No files found.
src/graph/generation/urn_sampler.hh
View file @
42a4170e
...
...
@@ -61,9 +61,9 @@ public:
else
{
std
::
swap
(
_urn
[
i
],
_urn
.
back
());
_
temp
=
_urn
.
back
();
Value
temp
=
_urn
.
back
();
_urn
.
pop_back
();
return
_
temp
;
return
temp
;
}
}
...
...
@@ -73,7 +73,6 @@ public:
private:
vector
<
Value
>
_urn
;
Value
_temp
;
};
}
// namespace graph_tool
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment