Merge pull request #2550 from signalwire/maria_move

[mod_mariadb] mariadb_dsn: Coverity 1546237 COPY_INSTEAD_OF_MOVE
This commit is contained in:
Andrey Volk 2024-07-30 18:06:07 +03:00 committed by GitHub
commit 85397f1ba5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 3 deletions

View File

@ -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) {