[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[oMetah-devel] ometah/common itsSet.cpp itsSet.hpp
From: |
Johann |
Subject: |
[oMetah-devel] ometah/common itsSet.cpp itsSet.hpp |
Date: |
Wed, 16 Mar 2005 14:09:28 -0500 |
CVSROOT: /cvsroot/ometah
Module name: ometah
Branch:
Changes by: Johann <address@hidden> 05/03/16 19:09:28
Modified files:
common : itsSet.cpp itsSet.hpp
Log message:
* the item() method should not return a pointer, as the class aims to
handle pointers
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/ometah/ometah/common/itsSet.cpp.diff?tr1=1.3&tr2=1.4&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/ometah/ometah/common/itsSet.hpp.diff?tr1=1.6&tr2=1.7&r1=text&r2=text
Patches:
Index: ometah/common/itsSet.cpp
diff -u ometah/common/itsSet.cpp:1.3 ometah/common/itsSet.cpp:1.4
--- ometah/common/itsSet.cpp:1.3 Sat Mar 12 22:50:34 2005
+++ ometah/common/itsSet.cpp Wed Mar 16 19:09:28 2005
@@ -1,5 +1,5 @@
/***************************************************************************
- * $Id: itsSet.cpp,v 1.3 2005/03/12 22:50:34 nojhan Exp $
+ * $Id: itsSet.cpp,v 1.4 2005/03/16 19:09:28 nojhan Exp $
* Author: Walid TFAILI <address@hidden>
****************************************************************************/
@@ -49,7 +49,7 @@
}
template <class T>
-T * itsSet<T>::item()
+T itsSet<T>::item()
{
- return & collection[currentItem.c_str()];
+ return collection[currentItem.c_str()];
}
Index: ometah/common/itsSet.hpp
diff -u ometah/common/itsSet.hpp:1.6 ometah/common/itsSet.hpp:1.7
--- ometah/common/itsSet.hpp:1.6 Sat Mar 12 22:50:34 2005
+++ ometah/common/itsSet.hpp Wed Mar 16 19:09:28 2005
@@ -1,5 +1,5 @@
/***************************************************************************
- * $Id: itsSet.hpp,v 1.6 2005/03/12 22:50:34 nojhan Exp $
+ * $Id: itsSet.hpp,v 1.7 2005/03/16 19:09:28 nojhan Exp $
* Author: Walid TFAILI <address@hidden>
****************************************************************************/
@@ -78,7 +78,7 @@
void choose(string name);
//! Return a pointer on the current object
- T * item();
+ T item();
};
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [oMetah-devel] ometah/common itsSet.cpp itsSet.hpp,
Johann <=