diff options
author | Mike Jones <mjjones@us.ibm.com> | 2011-07-05 13:10:01 -0500 |
---|---|---|
committer | MIKE J. JONES <mjjones@us.ibm.com> | 2011-07-12 11:19:33 -0500 |
commit | e3fc77c59a071c009e13acdf4c4b2ce6a718a570 (patch) | |
tree | b6797ecc6735caf1d21866d10f51bd57aee9f68c /src/usr/hwpf/fapi/fapiTarget.C | |
parent | 0849df559aaa0fb758dfa92148f9e7a2c3d10105 (diff) | |
download | blackbird-hostboot-e3fc77c59a071c009e13acdf4c4b2ce6a718a570.tar.gz blackbird-hostboot-e3fc77c59a071c009e13acdf4c4b2ce6a718a570.zip |
HWPF const fixes and perl script updates
Change-Id: Icb0393cac0e9143638b8d6811cc528404d29977c
Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/186
Tested-by: Jenkins Server
Reviewed-by: MIKE J. JONES <mjjones@us.ibm.com>
Diffstat (limited to 'src/usr/hwpf/fapi/fapiTarget.C')
-rw-r--r-- | src/usr/hwpf/fapi/fapiTarget.C | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/src/usr/hwpf/fapi/fapiTarget.C b/src/usr/hwpf/fapi/fapiTarget.C index 463a13ed3..ae6869f46 100644 --- a/src/usr/hwpf/fapi/fapiTarget.C +++ b/src/usr/hwpf/fapi/fapiTarget.C @@ -4,6 +4,14 @@ * @brief Implements the FAPI part of the Target class. */ +/* + * Change Log ****************************************************************** + * Flag Defect/Feature User Date Description + * ------ -------------- ---------- ----------- ---------------------------- + * mjjones 04/13/2011 Created. Based on Hlava prototype + * mjjones 07/05/2011. Removed const from handle + */ + #include <fapiTarget.H> namespace fapi @@ -22,7 +30,7 @@ Target::Target() : // Constructor. //****************************************************************************** Target::Target(const TargetType i_type, - const void * i_pHandle) : + void * i_pHandle) : iv_type(i_type), iv_pHandle(i_pHandle) { @@ -88,13 +96,13 @@ bool Target::operator!=(const Target & i_right) const //****************************************************************************** void * Target::get() const { - return const_cast<void *>(iv_pHandle); + return iv_pHandle; } //****************************************************************************** // Set the handle. //****************************************************************************** -void Target::set(const void * i_pHandle) +void Target::set(void * i_pHandle) { iv_pHandle = i_pHandle; } |