mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-24 02:42:48 +00:00
kdecore: mark findLibraryInternal() function static
use single variable assignment while at it Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
This commit is contained in:
parent
a85213ab10
commit
dcc373b2c8
1 changed files with 2 additions and 5 deletions
|
@ -68,7 +68,7 @@ inline QString makeLibName( const QString &libname )
|
|||
}
|
||||
|
||||
|
||||
QString findLibraryInternal(const QString &name, const KComponentData &cData)
|
||||
static QString findLibraryInternal(const QString &name, const KComponentData &cData)
|
||||
{
|
||||
// Convert name to a valid platform libname
|
||||
QString libname = makeLibName(name);
|
||||
|
@ -82,11 +82,8 @@ QString findLibraryInternal(const QString &name, const KComponentData &cData)
|
|||
if (!QDir::isRelativePath(libname))
|
||||
return libname;
|
||||
|
||||
// Start looking
|
||||
QString libfile;
|
||||
|
||||
// Check for kde modules/plugins?
|
||||
libfile = cData.dirs()->findResource("module", libname);
|
||||
QString libfile = cData.dirs()->findResource("module", libname);
|
||||
if (!libfile.isEmpty())
|
||||
return libfile;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue