'const' for parameters of addSymbol
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5765 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
b5e078cd08
commit
a5a254d7fa
1 changed files with 3 additions and 3 deletions
|
|
@ -2194,7 +2194,7 @@ void Language::main(int argc, char *argv[]) {
|
||||||
* ----------------------------------------------------------------------------- */
|
* ----------------------------------------------------------------------------- */
|
||||||
|
|
||||||
int
|
int
|
||||||
Language::addSymbol(String *s, Node *n) {
|
Language::addSymbol(const String *s, const Node *n) {
|
||||||
Node *c = Getattr(symbols,s);
|
Node *c = Getattr(symbols,s);
|
||||||
if (c && (c != n)) {
|
if (c && (c != n)) {
|
||||||
Swig_error(input_file, line_number, "'%s' is multiply defined in the generated module.\n", s);
|
Swig_error(input_file, line_number, "'%s' is multiply defined in the generated module.\n", s);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue