Refactoring done (was: Strigi refactor)
Jos van den Oever
jvdoever at gmail.com
Fri Mar 16 01:14:30 GMT 2007
2007/3/15, Cyrille Berger <cberger at cberger.net>:
> > The reason that it is hard to do away with the jstreams namespace is
> > that CLucene uses a few classes that are exactly the same as those in
> > Strigi. So for binary compatibility we cannot change these classes. We
> > can use some casting trickery to solve it, but that's not pretty.
> >
> > Strigi:StreamBase<char>* a = getStream();
> > jstream::StreamBase<char>* b = static_cast<jstream::StreamBase<char>*>(a);
> > indexStream(b);
> >
> > We would only need this in the CLucene backend. For other backends
> > this is not an issue.
> Can't namespace jstream = Strigi; in the CLucene backend solve this ? Or I did
> completely misunderstood the problem in which case you can kick me hard on
> the head ?
That would solve it. How would that work?
Cheers,
Jos
More information about the kde-core-devel
mailing list