[Nepomuk] Re: Nepomuk::File crash
Sebastian Trüg
trueg at kde.org
Wed Apr 6 18:04:50 CEST 2011
Please review here: https://git.reviewboard.kde.org/r/101039/
On 04/06/2011 05:40 PM, Matthias Fuchs wrote:
> The Nepomuk::File constructor is not correct and crashes as a result.
>
> It is:
> File( const KUrl& url = KUrl(), ResourceManager* manager = 0 ) : : Resource(
> url, Nepomuk::Vocabulary::NFO::FileDataObject(), manager ) {}
>
> Yet the Resource(url, nepomukUri, manager) expects the manager to be _not_ 0,
> thus crashing if it is.
>
> Imo this should be either be fixed in Resource by allowing non 0 values or in
> file via modifying the constructor.
>
> Not sure if the later would work in terms of binary concerns.
> So I don't know if
>
> - File( const KUrl& url = KUrl(), ResourceManager* manager = 0 );
> + explicit File(const KUrl& url = KUrl());
> + File( const KUrl& url, ResourceManager* manager );
>
> would be binary compatible.
>
> _______________________________________________
> Nepomuk mailing list
> Nepomuk at kde.org
> https://mail.kde.org/mailman/listinfo/nepomuk
>
More information about the Nepomuk
mailing list