Salome HOME
projects
/
modules
/
smesh.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
#18963 Minimize compiler warnings
[modules/smesh.git]
/
src
/
SMDS
/
SMDS_SetIterator.hxx
diff --git
a/src/SMDS/SMDS_SetIterator.hxx
b/src/SMDS/SMDS_SetIterator.hxx
index b604abc776e2c851a7de9730ee32383dc387a935..c0439d512df03cc88d2b80395bf46925d2a77c1c 100644
(file)
--- a/
src/SMDS/SMDS_SetIterator.hxx
+++ b/
src/SMDS/SMDS_SetIterator.hxx
@@
-1,4
+1,4
@@
-// Copyright (C) 2007-20
15
CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-20
20
CEA/DEN, EDF R&D, OPEN CASCADE
//
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
//
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
@@
-20,7
+20,7
@@
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
-// SMESH SMDS : implementaion of Salome mesh data structure
+// SMESH SMDS : implementa
t
ion of Salome mesh data structure
// File : SMDS_SetIterator.hxx
// Created : Feb 27 2006
// Author : Edward AGAPOV (eap)
// File : SMDS_SetIterator.hxx
// Created : Feb 27 2006
// Author : Edward AGAPOV (eap)
@@
-51,6
+51,11
@@
namespace SMDS {
static VALUE value(VALUE_SET_ITERATOR it) { return (VALUE) it->second; }
};
static VALUE value(VALUE_SET_ITERATOR it) { return (VALUE) it->second; }
};
+ template<typename VALUE,typename VALUE_SET_ITERATOR>
+ struct PointerAccessor {
+ static VALUE value(VALUE_SET_ITERATOR it) { return (VALUE) &(*it); }
+ };
+
///////////////////////////////////////////////////////////////////////////////
/// Filters of value pointed by iterator
///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////
/// Filters of value pointed by iterator
///////////////////////////////////////////////////////////////////////////////
@@
-58,7
+63,7
@@
namespace SMDS {
template <typename VALUE>
struct PassAllValueFilter
{
template <typename VALUE>
struct PassAllValueFilter
{
- bool operator()(const VALUE&
t
) { return true; }
+ bool operator()(const VALUE&
/*t*/
) { return true; }
};
template <typename VALUE>
};
template <typename VALUE>