File tree Expand file tree Collapse file tree 5 files changed +5
-5
lines changed Expand file tree Collapse file tree 5 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -311,7 +311,7 @@ void GKDBus::checkDBusError(const char* error)
311
311
}
312
312
}
313
313
314
- DBusConnection* GKDBus::getConnection (BusConnection bus)
314
+ DBusConnection* const GKDBus::getConnection (BusConnection bus) const
315
315
{
316
316
switch (bus) {
317
317
case BusConnection::GKDBUS_SESSION :
Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ class GKDBus
111
111
DBusConnection* const connection) noexcept ;
112
112
void checkReleasedName (int ret) noexcept ;
113
113
void checkDBusError (const char * error);
114
- DBusConnection* getConnection (BusConnection bus);
114
+ DBusConnection* const getConnection (BusConnection bus) const ;
115
115
const unsigned int getDBusRequestFlags (const ConnectionFlag flag) noexcept ;
116
116
};
117
117
Original file line number Diff line number Diff line change @@ -112,7 +112,7 @@ class GKDBusEvents
112
112
std::map< const std::string, /* interface */
113
113
std::vector<GKDBusIntrospectableSignal> > > > _DBusIntrospectableSignals;
114
114
115
- virtual DBusConnection* getConnection (BusConnection wantedConnection) = 0;
115
+ virtual DBusConnection* const getConnection (BusConnection wantedConnection) const = 0;
116
116
117
117
void openXMLInterface (
118
118
std::ostringstream & xml,
Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ class GKDBusMessageBroadcastSignal
81
81
private:
82
82
GKDBusBroadcastSignal* _signal;
83
83
84
- virtual DBusConnection* getConnection (BusConnection wantedConnection) = 0;
84
+ virtual DBusConnection* const getConnection (BusConnection wantedConnection) const = 0;
85
85
};
86
86
87
87
} // namespace NSGKDBus
Original file line number Diff line number Diff line change @@ -98,7 +98,7 @@ class GKDBusMessageRemoteMethodCall
98
98
GKDBusRemoteMethodCall* _remoteMethodCall;
99
99
DBusPendingCall* _pendingCall;
100
100
101
- virtual DBusConnection* getConnection (BusConnection wantedConnection) = 0;
101
+ virtual DBusConnection* const getConnection (BusConnection wantedConnection) const = 0;
102
102
};
103
103
104
104
} // namespace NSGKDBus
You can’t perform that action at this time.
0 commit comments