Mailinglist Archive: zypp-devel (83 mails)

< Previous Next >
Re: [zypp-devel] Deprecated just for the fun of it?
  • From: Duncan Mac-Vicar Prett <dmacvicar@xxxxxxx>
  • Date: Wed, 25 Jun 2008 15:29:31 +0200
  • Message-id: <4862483B.6060301@xxxxxxx>
Stefan Hundhammer wrote:
/local_home/sh/yast2/trunk/qt-pkg/src/YQPkgObjList.cc:540: warning: 'hasInstalledObj' is deprecated (declared at /usr/include/zypp/ui/Selectable.h:163)

OK. So that function is deprecated. Hopefully there is a substitute for it that does the same thing in some modern, fancy way. But...

The replacement is just installedEmpty and no, it was not deprecated for fun. As there is no longer _one_ installed object, it is consistent to ask for the emptyness or the size of the container of installed objects.

Duncan

--
To unsubscribe, e-mail: zypp-devel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-devel+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups
References