Wrong usage of KLibrary::library()

Stephan Kulow coolo at kde.org
Mon May 14 09:05:00 BST 2007


Am Sonntag 13 Mai 2007 schrieb Christian Ehrlicher:
> Hi,
>
> is it possible to add a new function
>
> virtual KLibrary* library( const QString &libname, QLibrary::LoadHints
> loadHint = 0 );
>
> The reason for this is the wrong usage of library(const char *libname,
> ...) in some places:
>
> ll->globalLibrary(libname.toLatin1())
>
> which is wrong because KLibrary uses QFile::decodeName( libname )
> internally.
>
> Maybe the 'const char *' functions should become deprecated (don't know
> if this is possible in the current state of kde4)
>
It should be very much possible. And I don't see a reason to deprecate, just 
replace it with the correct form.

Greetings, Stephan





More information about the kde-core-devel mailing list