forked from qt-creator/qt-creator
Fix more krazy warnings.
This commit is contained in:
@@ -245,7 +245,7 @@ void InspectorUi::showDebuggerTooltip(const QPoint &mousePos, TextEditor::ITextE
|
||||
if ((qmlNode->kind == QmlJS::AST::Node::Kind_IdentifierExpression) &&
|
||||
(m_clientProxy->objectReferenceForId(refToLook).debugId() == -1)) {
|
||||
query = doubleQuote + QString("local: ") + refToLook + doubleQuote;
|
||||
foreach (QDeclarativeDebugPropertyReference property, ref.properties()) {
|
||||
foreach (const QDeclarativeDebugPropertyReference &property, ref.properties()) {
|
||||
if (property.name() == wordAtCursor
|
||||
&& !property.valueTypeName().isEmpty()) {
|
||||
query = doubleQuote + property.name() + QLatin1Char(':')
|
||||
@@ -259,7 +259,7 @@ void InspectorUi::showDebuggerTooltip(const QPoint &mousePos, TextEditor::ITextE
|
||||
+ QLatin1Char('+') + refToLook;
|
||||
} else {
|
||||
// show properties
|
||||
foreach (QDeclarativeDebugPropertyReference property, ref.properties()) {
|
||||
foreach (const QDeclarativeDebugPropertyReference &property, ref.properties()) {
|
||||
if (property.name() == wordAtCursor && !property.valueTypeName().isEmpty()) {
|
||||
query = doubleQuote + property.name() + QLatin1Char(':')
|
||||
+ doubleQuote + QLatin1Char('+') + property.name();
|
||||
|
||||
@@ -638,12 +638,12 @@ void QmlJSLiveTextPreview::setClientProxy(ClientProxy *clientProxy)
|
||||
connect(m_clientProxy.data(), SIGNAL(objectTreeUpdated()),
|
||||
SLOT(updateDebugIds()));
|
||||
|
||||
foreach(QWeakPointer<QmlJSEditor::QmlJSTextEditorWidget> qmlEditor, m_editors) {
|
||||
foreach (const QWeakPointer<QmlJSEditor::QmlJSTextEditorWidget> &qmlEditor, m_editors) {
|
||||
if (qmlEditor)
|
||||
qmlEditor.data()->setUpdateSelectedElements(true);
|
||||
}
|
||||
} else {
|
||||
foreach(QWeakPointer<QmlJSEditor::QmlJSTextEditorWidget> qmlEditor, m_editors) {
|
||||
foreach (const QWeakPointer<QmlJSEditor::QmlJSTextEditorWidget> &qmlEditor, m_editors) {
|
||||
if (qmlEditor)
|
||||
qmlEditor.data()->setUpdateSelectedElements(false);
|
||||
}
|
||||
|
||||
@@ -278,7 +278,7 @@ void QmlJSPropertyInspector::setCurrentObjects(const QList<QDeclarativeDebugObje
|
||||
|
||||
clear();
|
||||
|
||||
foreach ( QDeclarativeDebugObjectReference obj, objectList) {
|
||||
foreach (const QDeclarativeDebugObjectReference &obj, objectList) {
|
||||
m_currentObjects << obj.debugId();
|
||||
buildPropertyTree(obj);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user