mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-07 09:46:02 +02:00
Cosmetics.
This commit is contained in:
parent
de6b33924c
commit
4dd9a12177
1 changed files with 3 additions and 3 deletions
|
@ -6,7 +6,7 @@
|
||||||
* which accompanies this distribution, and is available at
|
* which accompanies this distribution, and is available at
|
||||||
* http://www.eclipse.org/legal/epl-v10.html
|
* http://www.eclipse.org/legal/epl-v10.html
|
||||||
*
|
*
|
||||||
* Contributors:
|
* Contributors:
|
||||||
* Institute for Software - initial API and implementation
|
* Institute for Software - initial API and implementation
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
package org.eclipse.cdt.internal.ui.refactoring;
|
package org.eclipse.cdt.internal.ui.refactoring;
|
||||||
|
@ -59,7 +59,7 @@ public class IndexToASTNameHelper {
|
||||||
}
|
}
|
||||||
|
|
||||||
private static boolean isUnnamedName(IASTName name) {
|
private static boolean isUnnamedName(IASTName name) {
|
||||||
return name.getFileLocation() == null && "".equals(name.toString()); //$NON-NLS-1$
|
return name.getFileLocation() == null && name.toCharArray().length == 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
private static boolean isQualifiedName(IASTName name) {
|
private static boolean isQualifiedName(IASTName name) {
|
||||||
|
@ -114,7 +114,7 @@ class IndexNameToAstNameMatcher extends ASTVisitor {
|
||||||
}
|
}
|
||||||
|
|
||||||
class BindingToAstNameMatcher extends ASTVisitor {
|
class BindingToAstNameMatcher extends ASTVisitor {
|
||||||
private List<IASTName> results = new ArrayList<IASTName>();
|
private List<IASTName> results = new ArrayList<>();
|
||||||
private IBinding bindingToFind;
|
private IBinding bindingToFind;
|
||||||
private char[] toFindName;
|
private char[] toFindName;
|
||||||
private IIndex index;
|
private IIndex index;
|
||||||
|
|
Loading…
Add table
Reference in a new issue