From 6fbb49d66cdd6a630b30ad0b731707fc1f8c2903 Mon Sep 17 00:00:00 2001 From: Andrey Volk Date: Sun, 9 Jun 2024 13:12:11 +0300 Subject: [PATCH] [mod_mariadb] mariadb_dsn: Coverity 1546237 COPY_INSTEAD_OF_MOVE --- src/mod/databases/mod_mariadb/mariadb_dsn.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mod/databases/mod_mariadb/mariadb_dsn.cpp b/src/mod/databases/mod_mariadb/mariadb_dsn.cpp index eb7bfeedbd..06091eb469 100644 --- a/src/mod/databases/mod_mariadb/mariadb_dsn.cpp +++ b/src/mod/databases/mod_mariadb/mariadb_dsn.cpp @@ -83,11 +83,11 @@ public: if ("server" == key || "host" == key) { _host = value; } else if ("uid" == key || "user" == key || "username" == key) { - _user = value; + _user = std::move(value); } else if ("pwd" == key || "passwd" == key || "password" == key) { - _passwd = value; + _passwd = std::move(value); } else if ("database" == key || "db" == key) { - _db = value; + _db = std::move(value); } else if ("port" == key) { _port = std::stoi(value); } else if ("option" == key || "options" == key) {