From kdevelop-devel Tue Oct 25 12:39:39 2005 From: Alexander Dymo Date: Tue, 25 Oct 2005 12:39:39 +0000 To: kdevelop-devel Subject: Re: Is language support optional Message-Id: <200510251539.40020.adymo () mksat ! net> X-MARC-Message: https://marc.info/?l=kdevelop-devel&m=113024409725670 On Tuesday 25 October 2005 12:02, Vladimir Prus wrote: > I wonder if in KDevelop, language support is optional or not. > Specifically, here's a part of src/multibuffer.cpp: > > KDevLanguageSupport *language = API::getInstance()->languageSupport(); > setOrientation( language->splitOrientation() ); > > If 'language' is 0, the code will crash, and I've managed to crash it in > practice. Should the code check for language==0, or language==0 is > "impossible" event? At least I can say the language plugin _should_ be optional. kdevassistant application, for example, doesn't use language support stuff. Also when no project is loaded, no language support is available in usual KDevelop profiles. This case should be probably fixed. _______________________________________________ KDevelop-devel mailing list KDevelop-devel@barney.cs.uni-potsdam.de http://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-devel