forked from qt-creator/qt-creator
CppTools: Fix "! condition" coding style
Change-Id: Ic7e634e4249fb64edbc2daceb65ec8e9b5f0f8b9 Reviewed-by: Orgad Shaneh <orgads@gmail.com> Reviewed-by: Aurindam Jana <aurindam.jana@digia.com>
This commit is contained in:
@@ -181,7 +181,7 @@ void CppModelManager::updateModifiedSourceFiles()
|
||||
foreach (const Document::Ptr doc, snapshot) {
|
||||
const QDateTime lastModified = doc->lastModified();
|
||||
|
||||
if (! lastModified.isNull()) {
|
||||
if (!lastModified.isNull()) {
|
||||
QFileInfo fileInfo(doc->fileName());
|
||||
|
||||
if (fileInfo.exists() && fileInfo.lastModified() != lastModified)
|
||||
@@ -293,7 +293,7 @@ bool CppModelManager::replaceDocument(Document::Ptr newDoc)
|
||||
void CppModelManager::ensureUpdated()
|
||||
{
|
||||
QMutexLocker locker(&m_projectMutex);
|
||||
if (! m_dirty)
|
||||
if (!m_dirty)
|
||||
return;
|
||||
|
||||
m_projectFiles = internalProjectFiles();
|
||||
@@ -552,7 +552,7 @@ void CppModelManager::updateProjectInfo(const ProjectInfo &pinfo)
|
||||
{ // only hold the mutex for a limited scope, so the dumping afterwards can aquire it without deadlocking.
|
||||
QMutexLocker locker(&m_projectMutex);
|
||||
|
||||
if (! pinfo.isValid())
|
||||
if (!pinfo.isValid())
|
||||
return;
|
||||
|
||||
ProjectExplorer::Project *project = pinfo.project().data();
|
||||
@@ -691,7 +691,7 @@ void CppModelManager::GC()
|
||||
QSet<QString> processed;
|
||||
QStringList todo = projectFiles();
|
||||
|
||||
while (! todo.isEmpty()) {
|
||||
while (!todo.isEmpty()) {
|
||||
QString fn = todo.last();
|
||||
todo.removeLast();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user