aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDeterminant <[email protected]>2019-10-14 13:36:58 -0400
committerDeterminant <[email protected]>2019-10-14 13:36:58 -0400
commit2a99baafdcac46931b00a9ef9e77340dbc319b58 (patch)
tree99bd05cd8985ee61e93332c626d40cb9ea5f1fb1 /src
parentb6cc8b6615266fa1023b63d08e96971629d854c6 (diff)
remove unnecessary std::move()v0.1.0
Diffstat (limited to 'src')
-rw-r--r--src/conn.cpp2
-rw-r--r--src/util.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/conn.cpp b/src/conn.cpp
index 15f90bc..dab10dc 100644
--- a/src/conn.cpp
+++ b/src/conn.cpp
@@ -47,7 +47,7 @@ ConnPool::Conn::operator std::string() const {
case Conn::PASSIVE: s << "passive"; break;
}
s << ">";
- return std::move(s);
+ return std::string(std::move(s));
}
/* the following functions are executed by exactly one worker per Conn object */
diff --git a/src/util.cpp b/src/util.cpp
index 19b6915..ce98b22 100644
--- a/src/util.cpp
+++ b/src/util.cpp
@@ -126,7 +126,7 @@ std::string vstringprintf(const char *fmt, va_list _ap) {
}
}
va_end(ap);
- return std::move(buff);
+ return buff;
}
std::string stringprintf(const char *fmt, ...) {
@@ -134,7 +134,7 @@ std::string stringprintf(const char *fmt, ...) {
va_start(ap, fmt);
auto ret = vstringprintf(fmt, ap);
va_end(ap);
- return std::move(ret);
+ return ret;
}
const std::string get_current_datetime() {