From d4e85cef93dac1fee682804f82e77fec86e6e589 Mon Sep 17 00:00:00 2001 From: Fabien Costantini Date: Fri, 3 Jul 2009 23:32:47 +0000 Subject: UTF8: Fl_Text_Display and related: + Made char * text() const., this method should be further checked for UTF8 compat. + Added a fixme comment to remember we must check for the potential incorrect assumption that that a buffer size equals the string length + 1. + Correct a protected attrib. typo as we don't need to care about ABI compat. for now. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6818 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- FL/Fl_Text_Buffer.H | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'FL') diff --git a/FL/Fl_Text_Buffer.H b/FL/Fl_Text_Buffer.H index 967cda148..dc70b9fc1 100644 --- a/FL/Fl_Text_Buffer.H +++ b/FL/Fl_Text_Buffer.H @@ -102,7 +102,7 @@ class FL_EXPORT Fl_Text_Buffer { /** Returns the number of characters in the buffer. */ int length() { return mLength; } - char* text(); + char* text() const; void text(const char* text); char* text_range(int start, int end); char character(int pos); @@ -297,7 +297,7 @@ class FL_EXPORT Fl_Text_Buffer { tabs for padding in rectangular operations */ int mNModifyProcs; /**< number of modify-redisplay procs attached */ Fl_Text_Modify_Cb* /**< procedures to call when buffer is */ - mNodifyProcs; /**< modified to redisplay contents */ + mModifyProcs; /**< modified to redisplay contents */ void** mCbArgs; /**< caller arguments for modifyProcs above */ int mNPredeleteProcs; /**< number of pre-delete procs attached */ Fl_Text_Predelete_Cb* /**< procedure to call before text is deleted */ -- cgit v1.2.3