aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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() {