Mailinglist Archive: yast-commit (819 mails)

< Previous Next >
[yast-commit] r54483 - in /trunk/core/libycp/src: YCPList.cc include/ycp/ycpless.h
  • From: aschnell@xxxxxxxxxxxxxxxx
  • Date: Fri, 09 Jan 2009 09:09:48 -0000
  • Message-id: <E1LLDNE-0006VD-Ge@xxxxxxxxxxxxxxxx>
Author: aschnell
Date: Fri Jan 9 10:09:48 2009
New Revision: 54483

URL: http://svn.opensuse.org/viewcvs/yast?rev=54483&view=rev
Log:
- renamed functor (more stl like)

Modified:
trunk/core/libycp/src/YCPList.cc
trunk/core/libycp/src/include/ycp/ycpless.h

Modified: trunk/core/libycp/src/YCPList.cc
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/core/libycp/src/YCPList.cc?rev=54483&r1=54482&r2=54483&view=diff
==============================================================================
--- trunk/core/libycp/src/YCPList.cc (original)
+++ trunk/core/libycp/src/YCPList.cc Fri Jan 9 10:09:48 2009
@@ -110,7 +110,7 @@

bool YCPListRep::contains (const YCPValue& value) const
{
- return find_if(begin(), end(), bind2nd(ycpequal(), value)) != end();
+ return find_if(begin(), end(), bind2nd(ycpequal_to(), value)) != end();
}



Modified: trunk/core/libycp/src/include/ycp/ycpless.h
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/core/libycp/src/include/ycp/ycpless.h?rev=54483&r1=54482&r2=54483&view=diff
==============================================================================
--- trunk/core/libycp/src/include/ycp/ycpless.h (original)
+++ trunk/core/libycp/src/include/ycp/ycpless.h Fri Jan 9 10:09:48 2009
@@ -57,12 +57,12 @@
* Compares two YCPValues and returns true if they are equal, false otherwise.
* Optionally the comparison is locale aware.
*/
-class ycpequal : public std::binary_function<YCPValue, YCPValue, bool>
+class ycpequal_to : public std::binary_function<YCPValue, YCPValue, bool>
{

public:

- ycpequal(bool respect_locale = false) : respect_locale(respect_locale) {}
+ ycpequal_to(bool respect_locale = false) : respect_locale(respect_locale)
{}

bool operator()(const YCPValue& x, const YCPValue& y) const
{

--
To unsubscribe, e-mail: yast-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages