From 4e84acafa22deb699d266c448ad2dfde7c3221a6 Mon Sep 17 00:00:00 2001 From: Jeff Hill Date: Tue, 10 Aug 1999 19:57:15 +0000 Subject: [PATCH] moved inlines in order to eliminate g++ warnings --- src/gdd/gddI.h | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/src/gdd/gddI.h b/src/gdd/gddI.h index 1aa7ec1f2..709870afe 100644 --- a/src/gdd/gddI.h +++ b/src/gdd/gddI.h @@ -8,6 +8,9 @@ * $Id$ * * $Log$ + * Revision 1.7 1999/08/10 17:23:55 jhill + * moved inlines in order to eliminate g++ warnings + * * Revision 1.6 1999/08/05 22:48:44 jhill * removed knowledge of class osiTime, and made ref/unref mf const * @@ -665,16 +668,6 @@ inline gdd::operator aitUint8(void) const { aitUint8 d; get(d); return d; } inline gdd::operator aitInt8(void) const { aitInt8 d; get(d); return d; } inline gdd::operator aitString(void) const { aitString d; get(d); return d; } -inline gdd & gdd::operator [] (aitIndex index) -{ - return *this->getDD(index); -} - -inline const gdd & gdd::operator [] (aitIndex index) const -{ - return *this->getDD(index); -} - inline gdd & gdd::operator [] (int index) { assert (index>=0); @@ -711,4 +704,14 @@ inline const gdd* gdd::getDD(aitIndex index, const gddArray*& dd) const inline const gdd* gdd::getDD(aitIndex index, const gddContainer*& dd) const { return (const gdd*)(dd=(const gddContainer*)indexDD(index)); } +inline gdd & gdd::operator [] (aitIndex index) +{ + return *this->getDD(index); +} + +inline const gdd & gdd::operator [] (aitIndex index) const +{ + return *this->getDD(index); +} + #endif