# HG changeset patch # User jwe # Date 760923327 0 # Node ID ff237c5f50026f9b64649375665032c01a8b8705 # Parent aaf43fb91f39635099927fa10ef040cc365f72b4 [project @ 1994-02-10 23:35:14 by jwe] diff --git a/liboctave/Array.cc b/liboctave/Array.cc --- a/liboctave/Array.cc +++ b/liboctave/Array.cc @@ -32,7 +32,6 @@ #endif #include "Array.h" -#include "lo-error.h" /* * The real representation of all arrays. diff --git a/liboctave/Array.h b/liboctave/Array.h --- a/liboctave/Array.h +++ b/liboctave/Array.h @@ -28,6 +28,8 @@ #pragma interface #endif +#include "lo-error.h" + // Classes we declare. template class ArrayRep; @@ -310,12 +312,12 @@ T& checkelem (int r, int c); T& operator () (int r, int c); #else - Proxy elem (int r, int c) + inline Proxy elem (int r, int c) { return Proxy (this, r, c); } - Proxy checkelem (int r, int c) + inline Proxy checkelem (int r, int c) { if (r < 0 || c < 0 || r >= nr || c >= nc) { @@ -326,7 +328,7 @@ return Proxy (this, r, c); } - Proxy operator () (int r, int c) + inline Proxy operator () (int r, int c) { if (r < 0 || c < 0 || r >= nr || c >= nc) { @@ -350,8 +352,8 @@ private: - T get (int i) { return Array::elem (i); } - void set (const T& val, int i) { Array::elem (i) = val; } + inline T get (int i) { return Array::elem (i); } + inline void set (const T& val, int i) { Array::elem (i) = val; } }; #if defined (__GNUG__) && ! defined (USE_EXTERNAL_TEMPLATES)