mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-25 03:12:56 +00:00
mark some QSettings warning cases as unlikely
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
1621160d34
commit
0aac6601ca
1 changed files with 2 additions and 2 deletions
|
@ -982,7 +982,7 @@ void QSettings::beginGroup(const QString &group)
|
|||
{
|
||||
Q_D(QSettings);
|
||||
|
||||
if (!d->group.isEmpty()) {
|
||||
if (Q_UNLIKELY(!d->group.isEmpty())) {
|
||||
qWarning("QSettings::beginGroup: sub-groups are not supported");
|
||||
return;
|
||||
}
|
||||
|
@ -999,7 +999,7 @@ void QSettings::beginGroup(const QString &group)
|
|||
void QSettings::endGroup()
|
||||
{
|
||||
Q_D(QSettings);
|
||||
if (d->group.isEmpty()) {
|
||||
if (Q_UNLIKELY(d->group.isEmpty())) {
|
||||
qWarning("QSettings::endGroup: No matching beginGroup()");
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue