mirror of https://github.com/CGAL/cgal
Constify check_sep().
This commit is contained in:
parent
ed56f137a0
commit
5d8d4c8dec
|
|
@ -855,7 +855,7 @@ public:
|
|||
return this->string("unknown object");
|
||||
}
|
||||
|
||||
bool check_sep(char* sep) const;
|
||||
bool check_sep(const char* sep) const;
|
||||
bool test_string(std::string s) const;
|
||||
void print_vertex(Vertex_handle) const;
|
||||
void print_edge(Halfedge_handle) const;
|
||||
|
|
@ -1114,7 +1114,7 @@ SNC_io_parser<EW>::SNC_io_parser(std::ostream& os, SNC_structure& W,
|
|||
}
|
||||
|
||||
template <typename EW>
|
||||
bool SNC_io_parser<EW>::check_sep(char* sep) const
|
||||
bool SNC_io_parser<EW>::check_sep(const char* sep) const
|
||||
{
|
||||
char c;
|
||||
do in.get(c); while (isspace(c));
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ class Shell_constructor : public Modifier_base<typename Nef3::SNC_structure> {
|
|||
std::istream in;
|
||||
|
||||
|
||||
bool SNC_io_parser<EW>::check_sep(char* sep) const {
|
||||
bool SNC_io_parser<EW>::check_sep(const char* sep) const {
|
||||
char c;
|
||||
do in.get(c); while (isspace(c));
|
||||
while (*sep != '\0') {
|
||||
|
|
|
|||
|
|
@ -83,7 +83,7 @@ class SM_io_parser : public Decorator_
|
|||
int vn,en,ln,fn,i;
|
||||
// the number of objects
|
||||
|
||||
bool check_sep(char* sep);
|
||||
bool check_sep(const char* sep);
|
||||
void print_vertex(SVertex_handle) const;
|
||||
void print_edge(SHalfedge_handle) const;
|
||||
void print_loop(SHalfloop_const_handle) const;
|
||||
|
|
@ -161,7 +161,7 @@ SM_io_parser(std::ostream& iout, const Base& D)
|
|||
//-----------------------------------------------------------------------------
|
||||
|
||||
template <typename Decorator_>
|
||||
bool SM_io_parser<Decorator_>::check_sep(char* sep)
|
||||
bool SM_io_parser<Decorator_>::check_sep(const char* sep)
|
||||
{
|
||||
char c;
|
||||
do in.get(c); while (isspace(c));
|
||||
|
|
|
|||
Loading…
Reference in New Issue