summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorjoye <joye>2015-06-02 19:28:42 (GMT)
committerjoye <joye>2015-06-02 19:28:42 (GMT)
commit018d3d129300cab813e6638eabe6f4090ad5460b (patch)
tree9e76d5bd5f15d138c4c80e630e5cdb158d13cea8 /src
parent5e4d6d62aebd7c84459b75e1d37c89822724c813 (diff)
downloadblt-018d3d129300cab813e6638eabe6f4090ad5460b.zip
blt-018d3d129300cab813e6638eabe6f4090ad5460b.tar.gz
blt-018d3d129300cab813e6638eabe6f4090ad5460b.tar.bz2
*** empty log message ***
Diffstat (limited to 'src')
-rw-r--r--src/bltGrElemBar.C3
-rw-r--r--src/bltGrLegd.C5
-rw-r--r--src/bltGraphBar.C6
3 files changed, 9 insertions, 5 deletions
diff --git a/src/bltGrElemBar.C b/src/bltGrElemBar.C
index 78d97ff..c061c7e 100644
--- a/src/bltGrElemBar.C
+++ b/src/bltGrElemBar.C
@@ -308,7 +308,8 @@ void BarElement::map()
key.value =x[ii];
key.xAxis =ops->xAxis;
key.yAxis =NULL;
- Tcl_HashEntry* hPtr = Tcl_FindHashEntry(&barGraphPtr_->setTable_, &key);
+ Tcl_HashEntry* hPtr =
+ Tcl_FindHashEntry(&barGraphPtr_->setTable_, (char*)&key);
if (hPtr) {
Tcl_HashTable *tablePtr = (Tcl_HashTable*)Tcl_GetHashValue(hPtr);
diff --git a/src/bltGrLegd.C b/src/bltGrLegd.C
index fe46877..849b7e8 100644
--- a/src/bltGrLegd.C
+++ b/src/bltGrLegd.C
@@ -751,7 +751,7 @@ void Legend::selectEntry(Element* elemPtr)
selectElement(elemPtr);
break;
case SELECT_TOGGLE:
- Tcl_HashEntry* hPtr = Tcl_FindHashEntry(&selectTable_, (char*)elemPtr);
+ Tcl_HashEntry* hPtr = Tcl_FindHashEntry(&selectTable_, (char*)elemPtr);
if (hPtr)
deselectElement(elemPtr);
else
@@ -763,7 +763,8 @@ void Legend::selectEntry(Element* elemPtr)
void Legend::selectElement(Element* elemPtr)
{
int isNew;
- Tcl_HashEntry* hPtr = Tcl_CreateHashEntry(&selectTable_, elemPtr, &isNew);
+ Tcl_HashEntry* hPtr =
+ Tcl_CreateHashEntry(&selectTable_, (char*)elemPtr, &isNew);
if (isNew) {
ChainLink* link = selected_->append(elemPtr);
Tcl_SetHashValue(hPtr, link);
diff --git a/src/bltGraphBar.C b/src/bltGraphBar.C
index 205665b..09e4a51 100644
--- a/src/bltGraphBar.C
+++ b/src/bltGraphBar.C
@@ -355,7 +355,8 @@ void BarGraph::initBarSets()
key.yAxis =NULL;
int isNew;
- Tcl_HashEntry* hhPtr =Tcl_CreateHashEntry(&setTable, &key, &isNew);
+ Tcl_HashEntry* hhPtr =
+ Tcl_CreateHashEntry(&setTable, (char*)&key, &isNew);
Tcl_HashTable* tablePtr;
if (isNew) {
tablePtr = (Tcl_HashTable*)malloc(sizeof(Tcl_HashTable));
@@ -390,7 +391,8 @@ void BarGraph::initBarSets()
Tcl_HashTable* tablePtr = (Tcl_HashTable*)Tcl_GetHashValue(hhPtr);
int isNew;
- Tcl_HashEntry* hPtr = Tcl_CreateHashEntry(&setTable_, keyPtr, &isNew);
+ Tcl_HashEntry* hPtr =
+ Tcl_CreateHashEntry(&setTable_, (char*)keyPtr, &isNew);
Tcl_SetHashValue(hPtr, tablePtr);
if (max < tablePtr->numEntries)