Mailinglist Archive: zypp-devel (83 mails)
| < Previous | Next > |
Re: [zypp-devel] Deprecated just for the fun of it?
- From: Michael Andres <ma@xxxxxxx>
- Date: Thu, 19 Jun 2008 15:07:37 +0200
- Message-id: <20080619130737.GA16296@xxxxxxx>
On Thu, Jun 19, Stefan Hundhammer wrote:
Someone's been overeager beautifying the interface.
bool hasInstalledObj() const is the counterpart to
bool hasCandidateObj() const
Use it. I'll remove the tag.
--
cu,
Michael Andres
+------------------------------------------------------------------+
Key fingerprint = 2DFA 5D73 18B1 E7EF A862 27AC 3FB8 9E3A 27C6 B0E4
+------------------------------------------------------------------+
Michael Andres YaST Development ma@xxxxxxxxxx
SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nuernberg)
Maxfeldstrasse 5, D-90409 Nuernberg, Germany, ++49 (0)911 - 740 53-0
+------------------------------------------------------------------+
--
To unsubscribe, e-mail: zypp-devel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-devel+help@xxxxxxxxxxxx
/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...
Selectable.h:
/**
* True if installed object is present.
* \deprecated Use ! installedEmpty()
*/
ZYPP_DEPRECATED bool hasInstalledObj() const
{ return ! installedEmpty(); }
/** True if candidate object is present. */
bool hasCandidateObj() const
{ return candidateObj(); }
/** True if installed and candidate object is present */
bool hasBothObjects() const
{ return (! installedEmpty()) && candidateObj(); }
/** True if installed object is present but no candidate. */
bool hasInstalledObjOnly() const
{ return (! installedEmpty()) && ! candidateObj(); }
/** True if candidate object is present but no installed. */
bool hasCandidateObjOnly() const
{ return ( installedEmpty() ) && candidateObj(); }
Now somebody please explain what this might be good for.
Someone's been overeager beautifying the interface.
bool hasInstalledObj() const is the counterpart to
bool hasCandidateObj() const
Use it. I'll remove the tag.
--
cu,
Michael Andres
+------------------------------------------------------------------+
Key fingerprint = 2DFA 5D73 18B1 E7EF A862 27AC 3FB8 9E3A 27C6 B0E4
+------------------------------------------------------------------+
Michael Andres YaST Development ma@xxxxxxxxxx
SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nuernberg)
Maxfeldstrasse 5, D-90409 Nuernberg, Germany, ++49 (0)911 - 740 53-0
+------------------------------------------------------------------+
--
To unsubscribe, e-mail: zypp-devel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-devel+help@xxxxxxxxxxxx
| < Previous | Next > |