CMake: Fix typo in symbol names

I can't spell occurred:-/

Similar typos in 3rd party code (sqlite) has been left in place.

Change-Id: I7cfa9911fc434d42ce3df8e9c7ccb83dc00401e8
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Tobias Hunger
2020-03-19 12:41:23 +01:00
parent 4657563e4a
commit 5de0e81d8b
11 changed files with 26 additions and 25 deletions

View File

@@ -84,7 +84,8 @@ FilePath BuildDirManager::workDirectory(const BuildDirParameters &parameters) co
if (cmake && cmake->autoCreateBuildDirectory()) {
if (!QDir().mkpath(bdir.toString()))
emitErrorOccured(tr("Failed to create build directory \"%1\".").arg(bdir.toUserOutput()));
emitErrorOccurred(
tr("Failed to create build directory \"%1\".").arg(bdir.toUserOutput()));
return bdir;
}
@@ -95,8 +96,8 @@ FilePath BuildDirManager::workDirectory(const BuildDirParameters &parameters) co
tmpDirIt = ret.first;
if (!tmpDirIt->second->isValid()) {
emitErrorOccured(tr("Failed to create temporary directory \"%1\".")
.arg(QDir::toNativeSeparators(tmpDirIt->second->path())));
emitErrorOccurred(tr("Failed to create temporary directory \"%1\".")
.arg(QDir::toNativeSeparators(tmpDirIt->second->path())));
return bdir;
}
}
@@ -121,10 +122,10 @@ void BuildDirManager::emitDataAvailable()
emit dataAvailable();
}
void BuildDirManager::emitErrorOccured(const QString &message) const
void BuildDirManager::emitErrorOccurred(const QString &message) const
{
m_isHandlingError = true;
emit errorOccured(message);
emit errorOccurred(message);
m_isHandlingError = false;
}
@@ -160,9 +161,9 @@ void BuildDirManager::updateReaderType(const BuildDirParameters &p,
this,
&BuildDirManager::emitDataAvailable);
connect(m_reader.get(),
&BuildDirReader::errorOccured,
&BuildDirReader::errorOccurred,
this,
&BuildDirManager::emitErrorOccured);
&BuildDirManager::emitErrorOccurred);
connect(m_reader.get(), &BuildDirReader::dirty, this, &BuildDirManager::becameDirty);
connect(m_reader.get(), &BuildDirReader::isReadyNow, this, todo);
}
@@ -268,7 +269,7 @@ void BuildDirManager::stopParsingAndClearState()
qCDebug(cmakeBuildDirManagerLog) << "stopping parsing run!";
if (m_reader) {
if (m_reader->isParsing())
m_reader->errorOccured(tr("Parsing has been canceled."));
m_reader->errorOccurred(tr("Parsing has been canceled."));
disconnect(m_reader.get(), nullptr, this, nullptr);
m_reader->stop();
}