make PVUnion::UNDEFINED_INDEX const

This commit is contained in:
Michael Davidsaver
2017-04-15 13:07:56 -04:00
parent fc2adf98ba
commit f7343674ee
2 changed files with 2 additions and 2 deletions

View File

@@ -25,7 +25,7 @@ using std::string;
namespace epics { namespace pvData {
#define PVUNION_UNDEFINED_INDEX -1
int32 PVUnion::UNDEFINED_INDEX = PVUNION_UNDEFINED_INDEX;
const int32 PVUnion::UNDEFINED_INDEX = PVUNION_UNDEFINED_INDEX;
PVDataCreatePtr PVUnion::pvDataCreate(getPVDataCreate());

View File

@@ -932,7 +932,7 @@ public:
* Default value upon PVUnion construction. Can be set by the user.
* Corresponds to @c null value.
*/
static int32 UNDEFINED_INDEX;
static const int32 UNDEFINED_INDEX;
/**
* Get the introspection interface