Use empty d->cString for TQString::shared_null instead of null string.

This restores consistency for the behavior of methods TQString::utf8()
and TQString::local8Bit() with null TQStrings.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit e99bbda734)
v3.5.13-sru
Slávek Banko 2 years ago
parent 1bda8d37ec
commit 4223d739e9
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -5725,7 +5725,7 @@ const char* QString::ascii() const
QCString QString::utf8() const
{
if (!d->cString) {
d->cString = new QCString;
d->cString = new QCString("");
}
if(d == shared_null)
{
@ -5974,7 +5974,7 @@ QString QString::fromLatin1( const char* chars, int len )
QCString QString::local8Bit() const
{
if (!d->cString) {
d->cString = new QCString;
d->cString = new QCString("");
}
if(d == shared_null)
{

Loading…
Cancel
Save