projects
/
cumulus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
535e983
)
The map::at method does not always exist, so instead use map::find.
author
Michael Vrable
<mvrable@cs.ucsd.edu>
Sat, 26 Sep 2009 19:09:35 +0000
(12:09 -0700)
committer
Michael Vrable
<mvrable@cs.ucsd.edu>
Sat, 26 Sep 2009 19:09:35 +0000
(12:09 -0700)
Thanks to Achim J. Latz <achim.latz@qustodium.net>.
metadata.cc
patch
|
blob
|
history
diff --git
a/metadata.cc
b/metadata.cc
index
e1ea1aa
..
2ae0751
100644
(file)
--- a/
metadata.cc
+++ b/
metadata.cc
@@
-98,7
+98,7
@@
static string encode_dict(const map<string, string>& dict)
string result;
if (dict.find("name") != dict.end()) {
- result += "name: " + dict.
at("name")
+ "\n";
+ result += "name: " + dict.
find("name")->second
+ "\n";
}
for (map<string, string>::const_iterator i = dict.begin();