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
Use empty() to check for container emptiness.
[simgrid.git]
/
src
/
kernel
/
resource
/
profile
/
Profile.cpp
diff --git
a/src/kernel/resource/profile/Profile.cpp
b/src/kernel/resource/profile/Profile.cpp
index 7174d926ac932de349492579082513d651f08822..b6167c491d9873167f4a7d89f0521a31d87c652e 100644
(file)
--- a/
src/kernel/resource/profile/Profile.cpp
+++ b/
src/kernel/resource/profile/Profile.cpp
@@
-129,7
+129,7
@@
Profile* Profile::from_string(const std::string& name, const std::string& input,
std::vector<std::string> splittedval((std::istream_iterator<std::string>(iss)),
std::istream_iterator<std::string>());
std::vector<std::string> splittedval((std::istream_iterator<std::string>(iss)),
std::istream_iterator<std::string>());
- xbt_assert(
splittedval.size() > 0
, "Invalid profile line");
+ xbt_assert(
not splittedval.empty()
, "Invalid profile line");
if (splittedval[0] == "DET") {
stochevent.date_law = Distribution::DET;
if (splittedval[0] == "DET") {
stochevent.date_law = Distribution::DET;