summaryrefslogtreecommitdiff
path: root/examples/tree-of-tables.cxx
diff options
context:
space:
mode:
authorGreg Ercolano <erco@seriss.com>2014-01-01 17:13:48 +0000
committerGreg Ercolano <erco@seriss.com>2014-01-01 17:13:48 +0000
commit1af599b4af6ebadde6ec0b87c30cfc9a2259f797 (patch)
tree50a86f984eab73848caedaaf3ab00faa5e6e2e43 /examples/tree-of-tables.cxx
parent8e30fc438cbe655f122de58b8cb2a1abdc9cffe1 (diff)
Fixes errors:
warning: deprecated conversion from string constant to 'char*' git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10040 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'examples/tree-of-tables.cxx')
-rw-r--r--examples/tree-of-tables.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/tree-of-tables.cxx b/examples/tree-of-tables.cxx
index e5ec6e0a1..be815551b 100644
--- a/examples/tree-of-tables.cxx
+++ b/examples/tree-of-tables.cxx
@@ -31,9 +31,9 @@
#if FLTK_ABI_VERSION >= 10301
class MyTable : public Fl_Table {
- char *mode;
+ const char *mode;
public:
- MyTable(int X,int Y,int W,int H,char *mode) : Fl_Table(X,Y,W,H) {
+ MyTable(int X,int Y,int W,int H,const char *mode) : Fl_Table(X,Y,W,H) {
rows(11); row_height_all(20); row_header(1);
cols(11); col_width_all(60); col_header(1);
col_resize(1); // enable column resizing