(String &operator<<, String &operator>>): Declare source
argument const for these funcs to silence compiler warnings. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@416 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
d90b8e6868
commit
c4605854d5
2 changed files with 20 additions and 20 deletions
|
|
@ -287,7 +287,7 @@ String &operator<<(String &t,const int a) {
|
||||||
return t;
|
return t;
|
||||||
}
|
}
|
||||||
|
|
||||||
String &operator<<(String &t, String &s) {
|
String &operator<<(String &t, const String &s) {
|
||||||
t.add(s.get());
|
t.add(s.get());
|
||||||
return t;
|
return t;
|
||||||
}
|
}
|
||||||
|
|
@ -322,7 +322,7 @@ String &operator>>(const char *s, String &t) {
|
||||||
return t;
|
return t;
|
||||||
}
|
}
|
||||||
|
|
||||||
String &operator>>(String &s, String &t) {
|
String &operator>>(const String &s, String &t) {
|
||||||
t.insert(s.get());
|
t.insert(s.get());
|
||||||
return t;
|
return t;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -82,9 +82,9 @@ public:
|
||||||
friend String& operator<<(String&,const char *s);
|
friend String& operator<<(String&,const char *s);
|
||||||
friend String& operator<<(String&,const int);
|
friend String& operator<<(String&,const int);
|
||||||
friend String& operator<<(String&,const char);
|
friend String& operator<<(String&,const char);
|
||||||
friend String& operator<<(String&,String&);
|
friend String& operator<<(String&,const String&);
|
||||||
friend String& operator>>(const char *s, String&);
|
friend String& operator>>(const char *s, String&);
|
||||||
friend String& operator>>(String&,String&);
|
friend String& operator>>(const String&,String&);
|
||||||
String& operator=(const char *);
|
String& operator=(const char *);
|
||||||
operator char*() const { return str; }
|
operator char*() const { return str; }
|
||||||
void untabify();
|
void untabify();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue