[Common-dev] CR: fix inline warnings
Tom Marshall tmarshall at helixcommunity.orgSeveral functions under common/container are declared without the inline
qualifier but implemented with it. This causes spurious compiler warnings.
Index: pub/carray.h
===================================================================
RCS file: /cvsroot/common/container/pub/carray.h,v
retrieving revision 1.1.1.1
diff -u -d -b -B -r1.1.1.1 carray.h
--- pub/carray.h 18 Oct 2002 01:40:47 -0000 1.1.1.1
+++ pub/carray.h 21 May 2004 18:02:05 -0000
@@ -83,7 +83,7 @@
void RemoveAt(int index, int repeat=1);
// search for value in array
- BOOL Find(void* value, int* index=NULL);
+ inline BOOL Find(void* value, int* index=NULL);
// search for and remove first occurence
BOOL FindAndRemoveOne(void* value);
// search for and remove all occurences
Index: pub/hxstring.h
===================================================================
RCS file: /cvsroot/common/container/pub/hxstring.h,v
retrieving revision 1.9
diff -u -d -b -B -r1.9 hxstring.h
--- pub/hxstring.h 8 Aug 2003 18:28:33 -0000 1.9
+++ pub/hxstring.h 21 May 2004 18:02:05 -0000
@@ -123,11 +123,11 @@
bool operator!=(const char* pStr) const;
bool operator!=(const unsigned char* pStr) const;
bool operator<=(const CHXString& rhs) const;
- bool operator<=(const char* pStr) const;
- bool operator<=(const unsigned char* pStr) const;
+ inline bool operator<=(const char* pStr) const;
+ inline bool operator<=(const unsigned char* pStr) const;
bool operator<(const CHXString& rhs) const;
- bool operator<(const char* pStr) const;
- bool operator<(const unsigned char* pStr) const;
+ inline bool operator<(const char* pStr) const;
+ inline bool operator<(const unsigned char* pStr) const;
const CHXString& operator=(const CHXString& rhs);
const CHXString& operator=(char ch);
--
Any task can be completed in only one-third more time than is currently
estimated.
-- Norman Augustine
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.helixcommunity.org/pipermail/common-dev/attachments/20040521/49643c13/attachment-0001.bin