Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergey Prigogin2015-02-05 05:34:53 +0000
committerSergey Prigogin2015-02-05 05:35:58 +0000
commita88ec27a68b3407c8bb0d5515123c4efddd1b026 (patch)
tree7e98c927d3a16e4a32a3ee57a57dec7fea195fc4
parent772ac2fa74a0a30cdd1c47c8b93a4503a52c8b72 (diff)
downloadorg.eclipse.cdt-a88ec27a68b3407c8bb0d5515123c4efddd1b026.tar.gz
org.eclipse.cdt-a88ec27a68b3407c8bb0d5515123c4efddd1b026.tar.xz
org.eclipse.cdt-a88ec27a68b3407c8bb0d5515123c4efddd1b026.zip
Bug 459179 - ClassCastException in CPPSemantics.getParentScope
Fixed compilation error in QtPDOMLinkage.java.
-rw-r--r--qt/org.eclipse.cdt.qt.core/src/org/eclipse/cdt/internal/qt/core/pdom/QtPDOMLinkage.java6
1 files changed, 6 insertions, 0 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 7c04840cce7..07010f973d7 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
@@ -26,6 +26,7 @@ import org.eclipse.cdt.internal.core.pdom.dom.FindBinding;
import org.eclipse.cdt.internal.core.pdom.dom.IPDOMBinding;
import org.eclipse.cdt.internal.core.pdom.dom.PDOMBinding;
import org.eclipse.cdt.internal.core.pdom.dom.PDOMFile;
+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;
@@ -107,6 +108,11 @@ public class QtPDOMLinkage extends PDOMLinkage {
return new FindBinding.DefaultBindingBTreeComparator(this);
}
+ @Override
+ public PDOMGlobalScope getGlobalScope() {
+ return null;
+ }
+
// IBinding#getAdapter cannot create an instance of PDOMBinding because the Linkage is required. This
// utility method uses #getAdapter to see if an instance has already been created. If not then a new
// is created and stored in the AST binding.

Back to the top