aboutsummaryrefslogtreecommitdiffstats
path: root/src/asn1_tm.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2006-06-23 10:44:40 +0000
committerlloyd <[email protected]>2006-06-23 10:44:40 +0000
commit8b1c1c4885aa921d73048312ff31517b3ca18a8b (patch)
tree8df1461e5da3d112947417ecbe223e1b7112ef37 /src/asn1_tm.cpp
parent571fea5ac667b88a66604ecdba05d8324f5e9de7 (diff)
Use std::string::clear() rather than assign the empty string when
we want to remove the current contents of a string object.
Diffstat (limited to 'src/asn1_tm.cpp')
-rw-r--r--src/asn1_tm.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/asn1_tm.cpp b/src/asn1_tm.cpp
index 25b434609..e59b352c7 100644
--- a/src/asn1_tm.cpp
+++ b/src/asn1_tm.cpp
@@ -93,7 +93,7 @@ void X509_Time::set_to(const std::string& time_str)
{
if(current != "")
params.push_back(current);
- current = "";
+ current.clear();
}
}
if(current != "")
@@ -140,7 +140,7 @@ void X509_Time::set_to(const std::string& t_spec, ASN1_Tag tag)
for(u32bit j = 0; j != YEAR_SIZE; ++j)
current += t_spec[j];
params.push_back(current);
- current = "";
+ current.clear();
for(u32bit j = YEAR_SIZE; j != t_spec.size() - 1; ++j)
{
@@ -148,7 +148,7 @@ void X509_Time::set_to(const std::string& t_spec, ASN1_Tag tag)
if(current.size() == 2)
{
params.push_back(current);
- current = "";
+ current.clear();
}
}