Commit d372db35 authored by Stefan Majewsky's avatar Stefan Majewsky

SVN_SILENT krazy c++/emptystrcompare

svn path=/trunk/KDE/kdegames/ksirk/; revision=1145630
parent 24bf2e23
......@@ -1952,7 +1952,7 @@ void MainWindow::slotNationalityFlagEdited(int)
nationality->setFlagFileName(m_nationalityDefWidget->flag->currentText());
m_onu->setDirty();
if (previousFlagFileName == "" && nationality->flagFileName() != "")
if (previousFlagFileName.isEmpty() && !nationality->flagFileName().isEmpty())
{
updateSprites(Flag);
}
......
......@@ -72,7 +72,7 @@ ONU::ONU(const QString& configDir):
kDebug() << "ONU XML format version: " << onugroup.readEntry("format-version");
QString formatVersion = onugroup.readEntry("format-version");
if (formatVersion != "" && formatVersion != ONU_FILE_FORMAT_VERSION)
if (!formatVersion.isEmpty() && formatVersion != ONU_FILE_FORMAT_VERSION)
{
KMessageBox::error(0,
i18n("Error - Invalid skin definition file format. Expected %1 and got %2",QString(ONU_FILE_FORMAT_VERSION),formatVersion) + "<br>" + m_configFileName,
......@@ -97,7 +97,7 @@ ONU::ONU(const QString& configDir):
// m_continents.resize(onugroup.readEntry("nb-continents",0));
// root.attribute("map");
m_poolString = onugroup.readEntry("pool");
if (m_poolString == "")
if (m_poolString.isEmpty())
{
m_poolString = "Images/pool.svg";
}
......@@ -313,12 +313,7 @@ ONU::ONU(const QString& configDir):
goal->setType(Goal::Continents);
QList<QString> continentsList = goalGroup.readEntry("continents",QList<QString>());
foreach(const QString& continentId, continentsList)
{
if (continentId == "")
goal->continents().push_back(QString());
else
goal->continents().push_back(continentId);
}
goal->continents().push_back(continentId);
}
else if (goalType == "player" )
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment