D-Bus server: remove redundant m_server

The base class already has a copy of it, so Session doesn't
need its own. Found by cppcheck 1.65.
This commit is contained in:
Patrick Ohly 2014-06-25 11:54:31 +00:00
parent fdd66536ce
commit 6d660250cc
2 changed files with 1 additions and 3 deletions

View File

@ -647,7 +647,6 @@ Session::Session(Server &server,
"org.syncevolution.Session",
boost::bind(&Server::autoTermCallback, &server)),
ReadOperations(config_name, server),
m_server(server),
m_flags(flags),
m_sessionID(session),
m_peerDeviceID(peerDeviceID),

View File

@ -96,7 +96,6 @@ class Session : public GDBusCXX::DBusObjectHelper,
};
private:
Server &m_server;
std::vector<std::string> m_flags;
const std::string m_sessionID;
std::string m_peerDeviceID;
@ -445,7 +444,7 @@ public:
void setStubConnectionError(const std::string &error) { m_connectionError = error; }
std::string getStubConnectionError() { return m_connectionError; }
Server &getServer() { return m_server; }
Server &getServer() { return ReadOperations::m_server; }
std::string getConfigName() { return m_configName; }
std::string getSessionID() const { return m_sessionID; }
std::string getPeerDeviceID() const { return m_peerDeviceID; }