summaryrefslogtreecommitdiffstats
path: root/generic/tkPanedWindow.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2018-08-10 06:39:54 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2018-08-10 06:39:54 (GMT)
commit7d7b549619c459b43235329d1eafcff775e2828e (patch)
treec1c14b58e2f99d51081bb60ff7e65cbf442a6f68 /generic/tkPanedWindow.c
parent2a966c43ccb10010238cea4c0acf92ea5029dd0e (diff)
downloadtk-7d7b549619c459b43235329d1eafcff775e2828e.zip
tk-7d7b549619c459b43235329d1eafcff775e2828e.tar.gz
tk-7d7b549619c459b43235329d1eafcff775e2828e.tar.bz2
Eliminate type-casts, by using size_t type internally in more situations. No functional changes
Diffstat (limited to 'generic/tkPanedWindow.c')
-rw-r--r--generic/tkPanedWindow.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/generic/tkPanedWindow.c b/generic/tkPanedWindow.c
index 17e2b4a..45d784a 100644
--- a/generic/tkPanedWindow.c
+++ b/generic/tkPanedWindow.c
@@ -2992,16 +2992,13 @@ static int
ObjectIsEmpty(
Tcl_Obj *objPtr) /* Object to test. May be NULL. */
{
- int length;
-
if (objPtr == NULL) {
return 1;
}
- if (objPtr->bytes != NULL) {
- return (objPtr->length == 0);
+ if (objPtr->bytes == NULL) {
+ Tcl_GetString(objPtr);
}
- (void)Tcl_GetStringFromObj(objPtr, &length);
- return (length == 0);
+ return (objPtr->length == 0);
}
/*