Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergey Prigogin2015-02-05 05:38:28 +0000
committerSergey Prigogin2015-02-05 05:39:33 +0000
commit056db0fea89e7d6180a48079e3ff3994f3c4a892 (patch)
tree032124a61775deaf4d060bbff9621c084bbee028
parenta88ec27a68b3407c8bb0d5515123c4efddd1b026 (diff)
downloadorg.eclipse.cdt-056db0fea89e7d6180a48079e3ff3994f3c4a892.tar.gz
org.eclipse.cdt-056db0fea89e7d6180a48079e3ff3994f3c4a892.tar.xz
org.eclipse.cdt-056db0fea89e7d6180a48079e3ff3994f3c4a892.zip
Bug 459179 - ClassCastException in CPPSemantics.getParentScope
Return proper global scope in QtPDOMLinkage.getGlobalScope() method.
-rw-r--r--qt/org.eclipse.cdt.qt.core/src/org/eclipse/cdt/internal/qt/core/pdom/QtPDOMLinkage.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/qt/org.eclipse.cdt.qt.core/src/org/eclipse/cdt/internal/qt/core/pdom/QtPDOMLinkage.java b/qt/org.eclipse.cdt.qt.core/src/org/eclipse/cdt/internal/qt/core/pdom/QtPDOMLinkage.java
index 07010f973d7..2c0020904e9 100644
--- a/qt/org.eclipse.cdt.qt.core/src/org/eclipse/cdt/internal/qt/core/pdom/QtPDOMLinkage.java
+++ b/qt/org.eclipse.cdt.qt.core/src/org/eclipse/cdt/internal/qt/core/pdom/QtPDOMLinkage.java
@@ -30,6 +30,7 @@ import org.eclipse.cdt.internal.core.pdom.dom.PDOMGlobalScope;
import org.eclipse.cdt.internal.core.pdom.dom.PDOMLinkage;
import org.eclipse.cdt.internal.core.pdom.dom.PDOMName;
import org.eclipse.cdt.internal.core.pdom.dom.PDOMNode;
+import org.eclipse.cdt.internal.core.pdom.dom.cpp.PDOMCPPGlobalScope;
import org.eclipse.cdt.qt.core.QtPlugin;
import org.eclipse.core.runtime.CoreException;
@@ -110,7 +111,7 @@ public class QtPDOMLinkage extends PDOMLinkage {
@Override
public PDOMGlobalScope getGlobalScope() {
- return null;
+ return PDOMCPPGlobalScope.INSTANCE;
}
// IBinding#getAdapter cannot create an instance of PDOMBinding because the Linkage is required. This

Back to the top