Code formatting
This commit is contained in:
@@ -157,8 +157,8 @@ namespace FdoSecrets
|
||||
if (ret.isError()) {
|
||||
return ret;
|
||||
}
|
||||
return static_cast<qulonglong>(
|
||||
m_backend->database()->rootGroup()->timeInfo().creationTime().toMSecsSinceEpoch() / 1000);
|
||||
return static_cast<qulonglong>(m_backend->database()->rootGroup()->timeInfo().creationTime().toMSecsSinceEpoch()
|
||||
/ 1000);
|
||||
}
|
||||
|
||||
DBusReturn<qulonglong> Collection::modified() const
|
||||
|
||||
@@ -354,12 +354,12 @@ namespace FdoSecrets
|
||||
return pathComponents.join('/');
|
||||
}
|
||||
|
||||
QString Item::encodeAttributeKey(const QString &key)
|
||||
QString Item::encodeAttributeKey(const QString& key)
|
||||
{
|
||||
return QUrl::toPercentEncoding(key, "", "_:").replace('%', '_');
|
||||
}
|
||||
|
||||
QString Item::decodeAttributeKey(const QString &key)
|
||||
QString Item::decodeAttributeKey(const QString& key)
|
||||
{
|
||||
return QString::fromUtf8(QByteArray::fromPercentEncoding(key.toLatin1(), '_'));
|
||||
}
|
||||
|
||||
@@ -66,8 +66,10 @@ namespace FdoSecrets
|
||||
|
||||
// Connect to service unregistered signal
|
||||
m_serviceWatcher.reset(new QDBusServiceWatcher());
|
||||
connect(
|
||||
m_serviceWatcher.data(), &QDBusServiceWatcher::serviceUnregistered, this, &Service::dbusServiceUnregistered);
|
||||
connect(m_serviceWatcher.data(),
|
||||
&QDBusServiceWatcher::serviceUnregistered,
|
||||
this,
|
||||
&Service::dbusServiceUnregistered);
|
||||
|
||||
m_serviceWatcher->setConnection(QDBusConnection::sessionBus());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user