aboutsummaryrefslogtreecommitdiffhomepage
path: root/history.cpp
diff options
context:
space:
mode:
authorGravatar Siteshwar Vashisht <siteshwar@gmail.com>2012-02-18 23:28:54 +0530
committerGravatar Siteshwar Vashisht <siteshwar@gmail.com>2012-02-18 23:28:54 +0530
commit7b3d670e230bb035ec74c73b6ac75b067be1f5e5 (patch)
tree14565e16218cdd365daec0b76fbbcc21651e5902 /history.cpp
parentc9f4e91df88112ea4ff5f5d9a993c3655672ce93 (diff)
Removing some unnecessary calls to c_str(), and added str2wcstring(std::string) in common.cpp.
Diffstat (limited to 'history.cpp')
-rw-r--r--history.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/history.cpp b/history.cpp
index b31d7694..d4f8a7fd 100644
--- a/history.cpp
+++ b/history.cpp
@@ -306,7 +306,7 @@ history_item_t history_t::decode_item(const char *base, size_t len) {
goto done;
cursor += advance;
- cmd = str2wcstring(value.c_str());
+ cmd = str2wcstring(value);
/* Read the remaining lines */
for (;;) {
@@ -351,7 +351,7 @@ history_item_t history_t::decode_item(const char *base, size_t len) {
/* Skip the leading dash-space and then store this path it */
line.erase(0, 2);
unescape_yaml(line);
- paths.push_front(str2wcstring(line.c_str()));
+ paths.push_front(str2wcstring(line));
}
}
}