diff options
Diffstat (limited to 'doc/html/motif-walkthrough-10.html')
-rw-r--r-- | doc/html/motif-walkthrough-10.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/html/motif-walkthrough-10.html b/doc/html/motif-walkthrough-10.html index 631c5137b..7dcb29ffe 100644 --- a/doc/html/motif-walkthrough-10.html +++ b/doc/html/motif-walkthrough-10.html @@ -51,12 +51,12 @@ us support for most of the written languages around the world. Our <tt>Page</tt <p> <pre></pre> <p> All functions that use the <tt>Page</tt> and <tt>Options</tt> structs need to be updated to use TQString properly. Since TQString is also an <a href="shclass.html#implicitly-shared">implicitly shared</a> class, we no longer have to do any memory management with our -strings. We can remove all occurences of the <a href="ntqcstring.html#qstrdup">tqstrdup</a>() function, +strings. We can remove all occurences of the <a href="tqcstring.html#qstrdup">tqstrdup</a>() function, and we never need to use <em>new</em> or <em>delete</em> when done with a string. TQString will allocate and delete data when needed. <p> Here are the <tt>MainWindow::fileOpen()</tt> and <tt>MainWindow::pageChange()</tt> functions from <tt>mainwindow.ui.h</tt>. Notice that the code no longer -uses <em>delete</em> or <a href="ntqcstring.html#qstrdup">tqstrdup</a>() when storing text. +uses <em>delete</em> or <a href="tqcstring.html#qstrdup">tqstrdup</a>() when storing text. <p> <p> <pre></pre> |