Constify check_sep().

This commit is contained in:
Sylvain Pion 2007-03-10 12:49:21 +00:00
parent ed56f137a0
commit 5d8d4c8dec
3 changed files with 5 additions and 5 deletions

View File

@ -855,7 +855,7 @@ public:
return this->string("unknown object"); 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; bool test_string(std::string s) const;
void print_vertex(Vertex_handle) const; void print_vertex(Vertex_handle) const;
void print_edge(Halfedge_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> 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; char c;
do in.get(c); while (isspace(c)); do in.get(c); while (isspace(c));

View File

@ -38,7 +38,7 @@ class Shell_constructor : public Modifier_base<typename Nef3::SNC_structure> {
std::istream in; 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; char c;
do in.get(c); while (isspace(c)); do in.get(c); while (isspace(c));
while (*sep != '\0') { while (*sep != '\0') {

View File

@ -83,7 +83,7 @@ class SM_io_parser : public Decorator_
int vn,en,ln,fn,i; int vn,en,ln,fn,i;
// the number of objects // the number of objects
bool check_sep(char* sep); bool check_sep(const char* sep);
void print_vertex(SVertex_handle) const; void print_vertex(SVertex_handle) const;
void print_edge(SHalfedge_handle) const; void print_edge(SHalfedge_handle) const;
void print_loop(SHalfloop_const_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_> template <typename Decorator_>
bool SM_io_parser<Decorator_>::check_sep(char* sep) bool SM_io_parser<Decorator_>::check_sep(const char* sep)
{ {
char c; char c;
do in.get(c); while (isspace(c)); do in.get(c); while (isspace(c));