mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-23 18:32:49 +00:00
kdecore: KMimeTypeFactory::entryOffset() optimization
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
38107cb5c7
commit
63a5c48126
1 changed files with 1 additions and 2 deletions
|
@ -53,8 +53,7 @@ int KMimeTypeFactory::entryOffset(const QString &mimeTypeName)
|
|||
return -1; // Error!
|
||||
}
|
||||
assert(!KSycoca::self()->isBuilding());
|
||||
const int offset = sycocaDict()->find_string(mimeTypeName);
|
||||
return offset;
|
||||
return sycocaDict()->find_string(mimeTypeName);
|
||||
}
|
||||
|
||||
int KMimeTypeFactory::serviceOffersOffset(const QString& mimeTypeName)
|
||||
|
|
Loading…
Add table
Reference in a new issue