summaryrefslogtreecommitdiffstats
path: root/src/tools/ntqstring.h
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2013-03-21 16:21:25 -0500
committerTimothy Pearson <[email protected]>2013-03-21 16:21:25 -0500
commitf5b03149e8e68e510efe9842d85a058b42a51264 (patch)
tree49c476a64e7377ecf25a949a9116fc7bf89c4cf5 /src/tools/ntqstring.h
parent1b0a52a0c1285bf6237aac3fbd99eaebeca5663a (diff)
downloadtqt3-f5b03149e8e68e510efe9842d85a058b42a51264.tar.gz
tqt3-f5b03149e8e68e510efe9842d85a058b42a51264.zip
Automated update from Qt3
Diffstat (limited to 'src/tools/ntqstring.h')
-rw-r--r--src/tools/ntqstring.h14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/tools/ntqstring.h b/src/tools/ntqstring.h
index 29704e719..b91caf83c 100644
--- a/src/tools/ntqstring.h
+++ b/src/tools/ntqstring.h
@@ -360,11 +360,10 @@ inline bool operator>( TQChar c1, TQChar c2 ) { return !(c2>=c1); }
// internal
struct Q_EXPORT TQStringData : public TQShared {
TQStringData() :
- TQShared(), unicode(0), ascii(0), len(0), issimpletext(TRUE), maxl(0), islatin1(FALSE) { ref(); }
+ TQShared(), unicode(0), ascii(0), len(0), issimpletext(TRUE), maxl(0), islatin1(FALSE), security_unpaged(FALSE) { ref(); }
TQStringData(TQChar *u, uint l, uint m) :
- TQShared(), unicode(u), ascii(0), len(l), issimpletext(FALSE), maxl(m), islatin1(FALSE) { }
- ~TQStringData() { if ( unicode ) delete[] ((char*)unicode);
- if ( ascii ) delete[] ascii; }
+ TQShared(), unicode(u), ascii(0), len(l), issimpletext(FALSE), maxl(m), islatin1(FALSE), security_unpaged(FALSE) { }
+ ~TQStringData();
void deleteSelf();
TQChar *unicode;
@@ -389,6 +388,8 @@ struct Q_EXPORT TQStringData : public TQShared {
#endif
uint islatin1 : 1;
+ bool security_unpaged : 1;
+
private:
#if defined(TQ_DISABLE_COPY)
TQStringData( const TQStringData& );
@@ -750,7 +751,12 @@ private:
// needed for TQDeepCopy
void detach();
+
+ void setSecurityUnPaged(bool lock);
+ static char* unicodeToLatin1( const TQChar*, uint len, bool unpaged );
+
friend class TQDeepCopy<TQString>;
+ friend class TQLineEdit;
};
class Q_EXPORT TQCharRef {