A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Avoid costly exceptions when looking into a map.
[simgrid.git]
/
src
/
instr
/
instr_paje_types.cpp
diff --git
a/src/instr/instr_paje_types.cpp
b/src/instr/instr_paje_types.cpp
index
c93da96
..
792fc4c
100644
(file)
--- a/
src/instr/instr_paje_types.cpp
+++ b/
src/instr/instr_paje_types.cpp
@@
-1,4
+1,4
@@
-/* Copyright (c) 2012, 2014-201
5
. The SimGrid Team.
+/* Copyright (c) 2012, 2014-201
7
. The SimGrid Team.
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
@@
-142,8
+142,8
@@
type_t PJ_type_variable_new (const char *name, const char *color, type_t father)
type_t ret = nullptr;
type_t ret = nullptr;
- char white[INSTR_DEFAULT_STR_SIZE] = "1 1 1";
if (not color) {
if (not color) {
+ char white[INSTR_DEFAULT_STR_SIZE] = "1 1 1";
ret = newType (name, name, white, TYPE_VARIABLE, father);
}else{
ret = newType (name, name, color, TYPE_VARIABLE, father);
ret = newType (name, name, white, TYPE_VARIABLE, father);
}else{
ret = newType (name, name, color, TYPE_VARIABLE, father);