Wrong usage of KLibrary::library()

Christian Ehrlicher Ch.Ehrlicher at gmx.de
Sun May 13 08:51:45 BST 2007


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)

Christian

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 250 bytes
Desc: OpenPGP digital signature
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20070513/a19850dc/attachment.sig>


More information about the kde-core-devel mailing list