Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
vidjil
vidjil
Commits
5a815076
Commit
5a815076
authored
Feb 06, 2015
by
Mikaël Salson
Browse files
WindowsStorage: getGermline returns NULL if the window doesn't exist
parent
1211e00f
Changes
2
Hide whitespace changes
Inline
Side-by-side
algo/core/windows.cpp
View file @
5a815076
...
...
@@ -23,7 +23,10 @@ string WindowsStorage::getLabel(junction window) {
}
Germline
*
WindowsStorage
::
getGermline
(
junction
window
)
{
return
germline_by_window
[
window
];
map
<
junction
,
Germline
*>::
iterator
result
=
germline_by_window
.
find
(
window
);
if
(
result
==
germline_by_window
.
end
())
return
NULL
;
return
result
->
second
;
}
JsonList
WindowsStorage
::
statusToJson
(
junction
window
)
{
...
...
algo/core/windows.h
View file @
5a815076
...
...
@@ -39,6 +39,10 @@ class WindowsStorage {
*/
WindowsStorage
(
map
<
string
,
string
>
&
labels
);
/**
* @return a pointer to the germline of the window
* or NULL if the window doesn't exist.
*/
Germline
*
getGermline
(
junction
window
);
JsonList
statusToJson
(
junction
window
);
...
...
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