diff options
author | William S Fulton <wsf@fultondesigns.co.uk> | 2004-11-02 22:13:39 +0000 |
---|---|---|
committer | William S Fulton <wsf@fultondesigns.co.uk> | 2004-11-02 22:13:39 +0000 |
commit | 3ef946d2d143b22a88bd8d52b9b5819a4b9cdf44 (patch) | |
tree | 8cd92297a92ee0edff20d908ca048407651bbc26 /Examples/java | |
parent | 0dc3099ead575d7ceba45022c13958de29642444 (diff) | |
download | swig-3ef946d2d143b22a88bd8d52b9b5819a4b9cdf44.tar.gz |
html fixes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6632 626c5289-ae23-0410-ae9c-e8d60b6d4f22
Diffstat (limited to 'Examples/java')
-rw-r--r-- | Examples/java/reference/index.html | 16 | ||||
-rw-r--r-- | Examples/java/simple/index.html | 2 | ||||
-rw-r--r-- | Examples/java/template/index.html | 4 |
3 files changed, 11 insertions, 11 deletions
diff --git a/Examples/java/reference/index.html b/Examples/java/reference/index.html index 946bda0fa..29d5db63f 100644 --- a/Examples/java/reference/index.html +++ b/Examples/java/reference/index.html @@ -26,7 +26,7 @@ you might have an operator like this: <blockquote> <pre> -Vector operator+(const Vector &a, const Vector &b) { +Vector operator+(const Vector &a, const Vector &b) { Vector result; result.x = a.x + b.x; result.y = a.y + b.y; @@ -40,7 +40,7 @@ or a function: <blockquote> <pre> -Vector addv(const Vector &a, const Vector &b) { +Vector addv(const Vector &a, const Vector &b) { Vector result; result.x = a.x + b.x; result.y = a.y + b.y; @@ -67,7 +67,7 @@ The prototypical example is an operator like this: <blockquote> <pre> -Vector &operator[](int index); +Vector &operator[](int index); </pre> </blockquote> @@ -75,7 +75,7 @@ or a method: <blockquote> <pre> -Vector &get(int index); +Vector &get(int index); </pre> </blockquote> @@ -84,8 +84,8 @@ For functions returning references, a wrapper like this is created: <blockquote> <pre> Vector *wrap_Object_get(Object *self, int index) { - Vector &result = self->get(index); - return &result; + Vector &result = self->get(index); + return &result; } </pre> </blockquote> @@ -107,10 +107,10 @@ class VectorArray { public: ... %addmethods { - Vector &get(int index) { + Vector &get(int index) { return (*self)[index]; } - void set(int index, Vector &a) { + void set(int index, Vector &a) { (*self)[index] = a; } } diff --git a/Examples/java/simple/index.html b/Examples/java/simple/index.html index ac06b7302..5b7848f31 100644 --- a/Examples/java/simple/index.html +++ b/Examples/java/simple/index.html @@ -32,7 +32,7 @@ double Foo = 3.0; int gcd(int x, int y) { int g; g = y; - while (x > 0) { + while (x > 0) { g = x; x = y % x; y = g; diff --git a/Examples/java/template/index.html b/Examples/java/template/index.html index f8fcce08e..04c910c14 100644 --- a/Examples/java/template/index.html +++ b/Examples/java/template/index.html @@ -36,10 +36,10 @@ template<class T> class vector { v = new T[_sz]; sz = _sz; } - T &get(int index) { + T &get(int index) { return v[index]; } - void set(int index, T &val) { + void set(int index, T &val) { v[index] = val; } #ifdef SWIG |