- if (!rhs.configFile.empty())
- configFile = rhs.configFile;
- if (!rhs.server.empty())
- server = rhs.server;
- if (!rhs.port.empty())
- port = rhs.port;
- if (!rhs.userName.empty())
- userName = rhs.userName;
- if (!rhs.userPass.empty())
- userPass = rhs.userPass;
- return *this;
+ STG::splice(configFile, rhs.configFile);
+ STG::splice(server, rhs.server);
+ STG::splice(port, rhs.port);
+ STG::splice(localAddress, rhs.localAddress);
+ STG::splice(localPort, rhs.localPort);
+ STG::splice(userName, rhs.userName);
+ STG::splice(userPass, rhs.userPass);
+ STG::splice(showConfig, rhs.showConfig);