New BinReloc patch

Arend van Beelen jr. arend at auton.nl
Mon Apr 19 23:56:00 BST 2004


Okay, how about the following:

- keep the part that's used by the constructor.
- remove executablePath(), executablePrefix() and libraryPath() from the API, 
so they're only used private
- change executablePrefix() and libraryPrefix() to addExecutablePrefix() and 
addLibraryPrefix(), respectively.

That way, the call for libraries would be changed from
  KGlobal::dirs()->addPrefix(KStandardDirs::libraryPrefix());
to
  KGlobal::dirs()->addLibraryPrefix();

Because the only function that's left in the API will no longer return a path 
but will directly add the prefix to KStandardDirs, no one can any longer use 
it as a static function to just get the path, but they would be forced to use 
the rest of KStandardDirs to do anything with the path. Therefore, no one can 
use this function without also using the traditional methods and one can not 
become dependant solely on this new function. As a result, you don't have to 
worry about portability when using this function.
Think that's acceptable?

Night,
Arend jr.

-- 
Arend van Beelen jr.
http://www.liacs.nl/~dvbeelen

It's a wonderful life - if you can find it.
-- Nick Cave & The Bad Seeds




More information about the kde-core-devel mailing list