From 87d29563e3ccdeb7fea0197e262e667ef323ff9c Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sun, 7 Jul 2024 14:56:09 +0900 Subject: Rename utility class nt* related files to equivalent tq* Signed-off-by: Michele Calgaro --- 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 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 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 tqstrdup() 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 tqstrdup() when storing text. +uses delete or tqstrdup() when storing text.


-- 
cgit v1.2.1