diff options
author | nijtmans <nijtmans> | 2007-01-03 05:06:25 (GMT) |
---|---|---|
committer | nijtmans <nijtmans> | 2007-01-03 05:06:25 (GMT) |
commit | 04839e2ede345ab7e9e61a07baefd1c91cca56bf (patch) | |
tree | ee02b8a4aebc8b8d0adb8c18fad99e3cbea4c19a /generic/ttk/ttkWidget.c | |
parent | df1d5b0c6b3bdf308fd86c0101f8e9110b177a6d (diff) | |
download | tk-04839e2ede345ab7e9e61a07baefd1c91cca56bf.zip tk-04839e2ede345ab7e9e61a07baefd1c91cca56bf.tar.gz tk-04839e2ede345ab7e9e61a07baefd1c91cca56bf.tar.bz2 |
various "const" additions, in line with TIP #27
Diffstat (limited to 'generic/ttk/ttkWidget.c')
-rw-r--r-- | generic/ttk/ttkWidget.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/generic/ttk/ttkWidget.c b/generic/ttk/ttkWidget.c index 8dc3de6..7a9ca26 100644 --- a/generic/ttk/ttkWidget.c +++ b/generic/ttk/ttkWidget.c @@ -1,4 +1,4 @@ -/* $Id: ttkWidget.c,v 1.3 2006/11/27 06:53:55 jenglish Exp $ +/* $Id: ttkWidget.c,v 1.4 2007/01/03 05:06:25 nijtmans Exp $ * Copyright (c) 2003, Joe English * * Ttk widget implementation, core widget utilities. @@ -145,7 +145,7 @@ void TtkWidgetChangeState(WidgetCore *corePtr, * Invoke an ensemble defined by a WidgetCommandSpec. */ int TtkWidgetEnsembleCommand( - WidgetCommandSpec *commands, /* Ensemble definition */ + const WidgetCommandSpec *commands, /* Ensemble definition */ int cmdIndex, /* Index of command word */ Tcl_Interp *interp, /* Interpreter to use */ int objc, Tcl_Obj *const objv[], /* Argument vector */ @@ -174,10 +174,10 @@ WidgetInstanceObjCmd( ClientData clientData, /* Widget record pointer */ Tcl_Interp *interp, /* Current interpreter. */ int objc, /* Number of arguments. */ - Tcl_Obj * CONST objv[]) /* Argument objects. */ + Tcl_Obj * const objv[]) /* Argument objects. */ { WidgetCore *corePtr = (WidgetCore *)clientData; - WidgetCommandSpec *commands = corePtr->widgetSpec->commands; + const WidgetCommandSpec *commands = corePtr->widgetSpec->commands; int status = TCL_OK; Tcl_Preserve(clientData); |