summaryrefslogtreecommitdiff
path: root/platform/core-api/src/com/intellij/psi/search/DelegatingGlobalSearchScope.java
diff options
context:
space:
mode:
Diffstat (limited to 'platform/core-api/src/com/intellij/psi/search/DelegatingGlobalSearchScope.java')
-rw-r--r--platform/core-api/src/com/intellij/psi/search/DelegatingGlobalSearchScope.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/platform/core-api/src/com/intellij/psi/search/DelegatingGlobalSearchScope.java b/platform/core-api/src/com/intellij/psi/search/DelegatingGlobalSearchScope.java
index d3ae32aa871c..7f7f05512b9c 100644
--- a/platform/core-api/src/com/intellij/psi/search/DelegatingGlobalSearchScope.java
+++ b/platform/core-api/src/com/intellij/psi/search/DelegatingGlobalSearchScope.java
@@ -30,9 +30,7 @@ public class DelegatingGlobalSearchScope extends GlobalSearchScope {
private final Object myEquality;
public DelegatingGlobalSearchScope(@NotNull GlobalSearchScope baseScope) {
- super(baseScope.getProject());
- myBaseScope = baseScope;
- myEquality = ArrayUtil.EMPTY_OBJECT_ARRAY;
+ this(baseScope, ArrayUtil.EMPTY_OBJECT_ARRAY);
}
public DelegatingGlobalSearchScope(@NotNull GlobalSearchScope baseScope, @NotNull Object... equality) {
@@ -71,6 +69,7 @@ public class DelegatingGlobalSearchScope extends GlobalSearchScope {
return myBaseScope.isSearchOutsideRootModel();
}
+ @NotNull
@Override
public String getDisplayName() {
return myBaseScope.getDisplayName();