There can be only one! (global.h)

Alexander Neundorf neundorf at kde.org
Mon Mar 6 18:25:58 CET 2006


On Monday 06 March 2006 14:51, David Faure wrote:
> On Monday 06 March 2006 14:00, Peter Kümmel wrote:
> > Is kio/global.h that useful that it will be included without any other
> > headers of kio? I just don't know.
>
> Yes. KIO::encodeFileName, KIO::decodeFileName, KIO::convertSize,
> KIO::findCacheMountPoint etc.
>
> > > So what's the problem with declaring the problem fixed and moving on?
> > > ;-))
> >
> > I've the impression it's not a good fix.
>
> kio/global.h has been around for more than 5 years and never created
> trouble. The problem came from some wrong buildsystem file.

Yes, but still it's a trap which one can run into. I'd also vote for making 
this really safe by renaming the headers to unique names.

Bye
Alex
-- 
Work: alexander.neundorf AT jenoptik.com - http://www.jenoptik-los.de
Home: neundorf AT kde.org                - http://www.kde.org
      alex AT neundorf.net               - http://www.neundorf.net


More information about the Kde-buildsystem mailing list