mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-24 10:52:56 +00:00
mark warning cases in QDBusSignature as unlikely
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
d46b915416
commit
2fb26c74a6
1 changed files with 2 additions and 2 deletions
|
@ -39,7 +39,7 @@ QT_BEGIN_NAMESPACE
|
|||
|
||||
void QDBusObjectPath::check()
|
||||
{
|
||||
if (!QDBusUtil::isValidObjectPath(*this)) {
|
||||
if (Q_UNLIKELY(!QDBusUtil::isValidObjectPath(*this))) {
|
||||
qWarning("QDBusObjectPath: invalid path \"%s\"", qPrintable(*this));
|
||||
clear();
|
||||
}
|
||||
|
@ -47,7 +47,7 @@ void QDBusObjectPath::check()
|
|||
|
||||
void QDBusSignature::check()
|
||||
{
|
||||
if (!QDBusUtil::isValidSignature(*this)) {
|
||||
if (Q_UNLIKELY(!QDBusUtil::isValidSignature(*this))) {
|
||||
qWarning("QDBusSignature: invalid signature \"%s\"", qPrintable(*this));
|
||||
clear();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue