From bd87b2af9dde0633e56a792665cdec7a9675da95 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Sun, 25 Nov 2012 14:05:14 -0600 Subject: Automated update from Qt3 --- doc/html/motif-walkthrough-10.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'doc/html/motif-walkthrough-10.html') diff --git a/doc/html/motif-walkthrough-10.html b/doc/html/motif-walkthrough-10.html index 2644630e8..b5e64017b 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 Page

 

All functions that use the Page and Options structs need to be updated to use TQString properly. Since TQString is also an implicitly shared class, we no longer have to do any memory management with our -strings. We can remove all occurences of the qstrdup() function, +strings. We can remove all occurences of the tqstrdup() function, and we never need to use new or delete when done with a string. TQString will allocate and delete data when needed.

Here are the MainWindow::fileOpen() and MainWindow::pageChange() functions from mainwindow.ui.h. Notice that the code no longer -uses delete or qstrdup() when storing text. +uses delete or tqstrdup() when storing text.


-- 
cgit v1.2.1