summaryrefslogtreecommitdiffstats
path: root/src/bltSwitch.C
diff options
context:
space:
mode:
authorjoye <joye>2014-04-24 18:01:08 (GMT)
committerjoye <joye>2014-04-24 18:01:08 (GMT)
commit8056a0ae90bf1b22da30287f31e73209b7eb9e53 (patch)
treed71ab09e8b364c97bbce33e74143ba7827ad989c /src/bltSwitch.C
parent5e5fcf5eda29bc13f3826ca392a9965f7019b610 (diff)
downloadblt-8056a0ae90bf1b22da30287f31e73209b7eb9e53.zip
blt-8056a0ae90bf1b22da30287f31e73209b7eb9e53.tar.gz
blt-8056a0ae90bf1b22da30287f31e73209b7eb9e53.tar.bz2
*** empty log message ***
Diffstat (limited to 'src/bltSwitch.C')
-rw-r--r--src/bltSwitch.C9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/bltSwitch.C b/src/bltSwitch.C
index a786708..22619a1 100644
--- a/src/bltSwitch.C
+++ b/src/bltSwitch.C
@@ -31,6 +31,11 @@
#include <stdarg.h>
#include <stdlib.h>
+#include <iostream>
+#include <sstream>
+#include <iomanip>
+using namespace std;
+
#include <tcl.h>
extern "C" {
@@ -283,8 +288,10 @@ static int DoSwitch(Tcl_Interp* interp, Blt_SwitchSpec *sp,
break;
default:
+ ostringstream str;
+ str << sp->type << ends;
Tcl_AppendResult(interp, "bad switch table: unknown type \"",
- Blt_Itoa(sp->type), "\"", (char *)NULL);
+ str.str().c_str(), "\"", NULL);
return TCL_ERROR;
}
sp++;