diff options
author | joye <joye> | 2015-06-03 19:45:40 (GMT) |
---|---|---|
committer | joye <joye> | 2015-06-03 19:45:40 (GMT) |
commit | aa1589f76e1413ca016e0cc2551dc86ae08c4a03 (patch) | |
tree | 29f0b949ba4deeff87eacfbaf8181dc32ba00083 /src | |
parent | d3818a0e2e8fc5cd66b23d28840cfa6df23391db (diff) | |
download | blt-aa1589f76e1413ca016e0cc2551dc86ae08c4a03.zip blt-aa1589f76e1413ca016e0cc2551dc86ae08c4a03.tar.gz blt-aa1589f76e1413ca016e0cc2551dc86ae08c4a03.tar.bz2 |
*** empty log message ***
Diffstat (limited to 'src')
-rw-r--r-- | src/bltGrElemBar.C | 3 | ||||
-rw-r--r-- | src/bltVecCmd.C | 9 |
2 files changed, 5 insertions, 7 deletions
diff --git a/src/bltGrElemBar.C b/src/bltGrElemBar.C index 51aec40..05eeb64 100644 --- a/src/bltGrElemBar.C +++ b/src/bltGrElemBar.C @@ -495,9 +495,6 @@ void BarElement::extents(Region2d *regPtr) return; int nPoints = NUMBEROFPOINTS(ops); - double barWidth = gops->barWidth; - if (ops->barWidth > 0.0f) - barWidth = ops->barWidth; double middle = 0.5; regPtr->left = ops->coords.x->min() - middle; diff --git a/src/bltVecCmd.C b/src/bltVecCmd.C index 67562e5..0bb4df7 100644 --- a/src/bltVecCmd.C +++ b/src/bltVecCmd.C @@ -1411,12 +1411,11 @@ static int SimplifyOp(Vector *vPtr, Tcl_Interp* interp, int objc, Tcl_Obj* const objv[]) { size_t i, n; - int length, nPoints; + int nPoints; int *simple; double tolerance = 10.0; Point2d *orig, *reduced; - length = vPtr->length; nPoints = vPtr->length / 2; simple = (int*)malloc(nPoints * sizeof(int)); reduced = (Point2d*)malloc(nPoints * sizeof(Point2d)); @@ -1560,10 +1559,11 @@ static int SortOp(Vector *vPtr, Tcl_Interp* interp, int objc, Tcl_Obj* const obj Vector *v2Ptr; double *copy; size_t *map; - size_t sortLength, nBytes; + size_t nBytes; int result; int i; - unsigned int n; + int n; + int sortLength; SortSwitches switches; sortDecreasing = 0; @@ -1583,6 +1583,7 @@ static int SortOp(Vector *vPtr, Tcl_Interp* interp, int objc, Tcl_Obj* const obj if (map == NULL) { return TCL_ERROR; } + sortLength = vPtr->length; /* * Create an array to store a copy of the current values of the |