Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Removed a bunch of warnings at Set, Covertree and SubsetStack
  • Loading branch information
lisitsyn committed May 12, 2012
1 parent d7979c8 commit afe403b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
2 changes: 0 additions & 2 deletions src/shogun/features/SubsetStack.h
Expand Up @@ -36,8 +36,6 @@ class CSubsetStack: public CSGObject
{
public:
/** Constructor. Creates empty subset stack
*
* @param original_size number of elements in the underlying data
*/
CSubsetStack();

Expand Down
2 changes: 1 addition & 1 deletion src/shogun/lib/JLCoverTreePoint.h
Expand Up @@ -35,7 +35,7 @@ class v_array{
v_array() { index = 0; length=0; elements = NULL;}

/** Element access operator
* @param index of the element to be read
* @param i of the element to be read
* @return the corresponding element */
T& operator[](unsigned int i) { return elements[i]; }

Expand Down
10 changes: 5 additions & 5 deletions src/shogun/lib/Set.h
Expand Up @@ -102,7 +102,7 @@ template<class T> class CSet: public CSGObject

/** Add an element to the set
*
* @param e elemet to be added
* @param element element to be added
*/
void add(const T& element)
{
Expand All @@ -116,7 +116,7 @@ template<class T> class CSet: public CSGObject

/** Remove an element from the set
*
* @param e element to be looked for
* @param element element to be looked for
*/
bool contains(const T& element)
{
Expand All @@ -129,7 +129,7 @@ template<class T> class CSet: public CSGObject

/** Remove an element from the set
*
* @param e element to be removed
* @param element element to be removed
*/
void remove(const T& element)
{
Expand All @@ -145,15 +145,15 @@ template<class T> class CSet: public CSGObject

/** Index of element in the set
*
* @param key key to be looked for
* @param element element to be looked for
* @return index of the element or -1 if not found
*/
int32_t index_of(const T& element)
{
int32_t index=hash(element);
CSetNode<T>* result=chain_search(index, element);

if (result!=NULL)
if (result!=NULL)
return result->index;

return -1;
Expand Down

0 comments on commit afe403b

Please sign in to comment.