aboutsummaryrefslogtreecommitdiffstats
path: root/src/parsing.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/parsing.cpp')
-rw-r--r--src/parsing.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/parsing.cpp b/src/parsing.cpp
index 4939cd082..99d4205ea 100644
--- a/src/parsing.cpp
+++ b/src/parsing.cpp
@@ -98,7 +98,7 @@ std::vector<std::string> parse_algorithm_name(const std::string& namex)
elems.push_back(substring.substr(1));
else
elems.push_back(substring);
- substring = "";
+ substring.clear();
}
else
substring += c;
@@ -125,7 +125,7 @@ std::vector<std::string> split_on(const std::string& str, char delim)
{
if(substr != "")
elems.push_back(substr);
- substr = "";
+ substr.clear();
}
else
substr += *j;
@@ -155,7 +155,7 @@ std::vector<u32bit> parse_asn1_oid(const std::string& oid)
if(substring == "")
throw Invalid_OID(oid);
oid_elems.push_back(to_u32bit(substring));
- substring = "";
+ substring.clear();
}
else
substring += c;