diff options
author | joye <joye> | 2014-04-18 18:42:28 (GMT) |
---|---|---|
committer | joye <joye> | 2014-04-18 18:42:28 (GMT) |
commit | 1fc89f60af8b4cfe4f7b189fb68bae0eaad1642d (patch) | |
tree | a136b1d42700d7038279103d4d8590b39e585873 /src | |
parent | e99f62660663d130a8358ec69c3fda614512fd74 (diff) | |
download | blt-1fc89f60af8b4cfe4f7b189fb68bae0eaad1642d.zip blt-1fc89f60af8b4cfe4f7b189fb68bae0eaad1642d.tar.gz blt-1fc89f60af8b4cfe4f7b189fb68bae0eaad1642d.tar.bz2 |
*** empty log message ***
Diffstat (limited to 'src')
-rw-r--r-- | src/bltGraph.C | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/bltGraph.C b/src/bltGraph.C index 366e1e6..4044fb7 100644 --- a/src/bltGraph.C +++ b/src/bltGraph.C @@ -905,7 +905,7 @@ int Graph::getPen(Tcl_Obj* objPtr, Pen** penPtrPtr) } *penPtrPtr = (Pen*)Tcl_GetHashValue(hPtr); - (*penPtrPtr)->refCount++; + (*penPtrPtr)->refCount_++; return TCL_OK; } @@ -1236,8 +1236,7 @@ int Graph::createAxis(int objc, Tcl_Obj* const objv[]) } int isNew; - Tcl_HashEntry* hPtr = - Tcl_CreateHashEntry(&axes_.table, string, &isNew); + Tcl_HashEntry* hPtr = Tcl_CreateHashEntry(&axes_.table, string, &isNew); if (!isNew) { Tcl_AppendResult(interp_, "axis \"", string, "\" already exists in \"", Tcl_GetString(objv[0]), "\"", NULL); @@ -1261,9 +1260,9 @@ int Graph::createAxis(int objc, Tcl_Obj* const objv[]) void Graph::destroyAxes() { Tcl_HashSearch cursor; - for (Tcl_HashEntry *hPtr = Tcl_FirstHashEntry(&axes_.table, &cursor); hPtr != NULL; hPtr = Tcl_NextHashEntry(&cursor)) { + for (Tcl_HashEntry *hPtr=Tcl_FirstHashEntry(&axes_.table, &cursor); + hPtr; hPtr=Tcl_NextHashEntry(&cursor)) { Axis *axisPtr = (Axis*)Tcl_GetHashValue(hPtr); - axisPtr->hashPtr_ = NULL; delete axisPtr; } Tcl_DeleteHashTable(&axes_.table); |