mirror of
https://github.com/Kistler-Group/sdbus-cpp.git
synced 2026-01-31 02:29:39 +01:00
Make Connection const-correct and fix integration tests build error
This commit is contained in:
@@ -76,7 +76,7 @@ void Connection::releaseName(const std::string& name)
|
||||
SDBUS_THROW_ERROR_IF(r < 0, "Failed to release bus name", -r);
|
||||
}
|
||||
|
||||
std::string Connection::getUniqueName()
|
||||
std::string Connection::getUniqueName() const
|
||||
{
|
||||
const char* unique = nullptr;
|
||||
auto r = iface_->sd_bus_get_unique_name(bus_.get(), &unique);
|
||||
@@ -110,7 +110,7 @@ void Connection::leaveProcessingLoop()
|
||||
joinWithProcessingLoop();
|
||||
}
|
||||
|
||||
sdbus::IConnection::PollData Connection::getProcessLoopPollData()
|
||||
sdbus::IConnection::PollData Connection::getProcessLoopPollData() const
|
||||
{
|
||||
ISdBus::PollData pollData;
|
||||
auto r = iface_->sd_bus_get_poll_data(bus_.get(), &pollData);
|
||||
|
||||
Reference in New Issue
Block a user