Mailinglist Archive: yast-commit (819 mails)

< Previous Next >
[yast-commit] r54532 - /trunk/core/libycp/src/include/ycp/YCPMap.h
  • From: aschnell@xxxxxxxxxxxxxxxx
  • Date: Sat, 10 Jan 2009 12:24:52 -0000
  • Message-id: <E1LLctZ-0006np-01@xxxxxxxxxxxxxxxx>
Author: aschnell
Date: Sat Jan 10 13:24:52 2009
New Revision: 54532

URL: http://svn.opensuse.org/viewcvs/yast?rev=54532&view=rev
Log:
- added deprecated attribute to YCPMapIterator members

Modified:
trunk/core/libycp/src/include/ycp/YCPMap.h

Modified: trunk/core/libycp/src/include/ycp/YCPMap.h
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/core/libycp/src/include/ycp/YCPMap.h?rev=54532&r1=54531&r2=54532&view=diff
==============================================================================
--- trunk/core/libycp/src/include/ycp/YCPMap.h (original)
+++ trunk/core/libycp/src/include/ycp/YCPMap.h Sat Jan 10 13:24:52 2009
@@ -27,7 +27,8 @@
#include "ycpless.h"


-// Only for backwards compatibility.
+// Only for backwards compatibility. See mail from aschnell on yast-devel on
+// 2009-01-07.
typedef map<YCPValue, YCPValue, ycp_less> YCPValueYCPValueMap;
class YCPMapIterator;

@@ -158,14 +159,15 @@
};


-// Only for backwards compatibility.
+// Only for backwards compatibility. See mail from aschnell on yast-devel on
+// 2009-01-07.
struct YCPMapIterator : public YCPValueYCPValueMap::const_iterator
{
YCPMapIterator(YCPValueYCPValueMap::const_iterator it)
: YCPValueYCPValueMap::const_iterator(it) {}

- YCPValue key() const { return (*this)->first; }
- YCPValue value() const { return (*this)->second; }
+ YCPValue key() const __attribute__ ((deprecated)) { return (*this)->first;
}
+ YCPValue value() const __attribute__ ((deprecated)) { return
(*this)->second; }
};



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

< Previous Next >
This Thread
  • No further messages