diff options
author | cleeland <cleeland@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-01-02 16:41:16 +0000 |
---|---|---|
committer | cleeland <cleeland@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-01-02 16:41:16 +0000 |
commit | 8755d17e357d2bd2e2f86fab37d2cdea7442917f (patch) | |
tree | 639c866cf1c22349a1bba83573a8ca603f0757eb /ace/Env_Value_T.i | |
parent | 4c8380f5b797b2eb26c18e338afc007fd70e2f38 (diff) | |
download | ATCD-8755d17e357d2bd2e2f86fab37d2cdea7442917f.tar.gz |
* tests/Env_Value_Test.cpp (main): Changed the definition of the
TEST_THIS macro to be all on one line. While ugly, this helps in
locating the line when ACE_ASSERT fails, since allowing the macro
to have multiple lines skews the line # reported by ACE_ASSERT.
Diffstat (limited to 'ace/Env_Value_T.i')
-rw-r--r-- | ace/Env_Value_T.i | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/ace/Env_Value_T.i b/ace/Env_Value_T.i index 31828bfe385..397a5614e0f 100644 --- a/ace/Env_Value_T.i +++ b/ace/Env_Value_T.i @@ -1,7 +1,7 @@ // $Id$ template <class T> ACE_INLINE -ACE_Env_Value<T>::operator const T (void) const +ACE_Env_Value<T>::operator T (void) { return value_; } @@ -21,7 +21,6 @@ ACE_Env_Value<T>::ACE_Env_Value (const char *varname, this->fetch_value (); } - template <class T> ACE_INLINE void ACE_Env_Value<T>::open (const char *varname, const T &defval) @@ -40,6 +39,12 @@ ACE_Env_Value<T>::fetch_value (void) ACE_Convert (env, value_); } +template <class T> ACE_INLINE const char* +ACE_Env_Value<T>::varname (void) const +{ + return varname_; +} + template <class T> ACE_INLINE ACE_Env_Value<T>::~ACE_Env_Value (void) { |