# HG changeset patch # User SokoL_SD # Date 1243173886 0 # Node ID 3d465c0a4f989ff95c4982b8847d03f13b503aaa # Parent 0654fc9bac95e5ca33d27910044336148d316a90 duic: replace "" with null diff -r 0654fc9bac95 -r 3d465c0a4f98 tools/duic/d/dwriteinitialization.cpp --- a/tools/duic/d/dwriteinitialization.cpp Sun May 24 13:46:32 2009 +0000 +++ b/tools/duic/d/dwriteinitialization.cpp Sun May 24 14:04:46 2009 +0000 @@ -732,7 +732,7 @@ icon += iconCall(picon); } - m_output << m_option.indent << parentWidget << ".addTab(" << varName << icon << ", " << "\"\");\n"; + m_output << m_option.indent << parentWidget << ".addTab(" << varName << icon << ", " << "null);\n"; m_refreshOut << m_option.indent << parentWidget << ".setTabText(" << parentWidget << ".indexOf(" << varName << "), " << trCall(title) << ");\n"; @@ -2008,7 +2008,7 @@ m_output << m_option.indent << varName << ".addItem("; if (icon) m_output << iconValue << ", "; - m_output << "\"\");\n"; + m_output << "null);\n"; if (!toString(text->elementString()).isEmpty()) m_refreshOut << m_option.indent << varName << ".setItemText(" << i << ", " << trCall(text->elementString()) << ");\n"; @@ -2269,7 +2269,7 @@ QString WriteInitialization::trCall(const QString &str, const QString &commentHint) const { if (str.isEmpty()) - return QLatin1String("\"\""); + return QLatin1String("null"); QString result; const QString comment = commentHint.isEmpty() ? QString("null") : fixString(commentHint, m_option.indent);