mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-23 17:05:26 +02:00
- fixed some NON-NLS problems
This commit is contained in:
parent
c8dd92b392
commit
89f91481e8
2 changed files with 3 additions and 3 deletions
|
@ -65,10 +65,10 @@ public class QuickFixAssignmentInCondition implements IMarkerResolution {
|
|||
int line = marker.getAttribute(IMarker.LINE_NUMBER, -1) - 1;
|
||||
FindReplaceDocumentAdapter dad = new FindReplaceDocumentAdapter(doc);
|
||||
try {
|
||||
dad.find(doc.getLineOffset(line), "=", /* forwardSearch */
|
||||
dad.find(doc.getLineOffset(line), "=", /* forwardSearch */ //$NON-NLS-1$
|
||||
true, /* caseSensitive */false,
|
||||
/* wholeWord */false, /* regExSearch */false);
|
||||
dad.replace("==", /* regExReplace */false);
|
||||
dad.replace("==", /* regExReplace */false); //$NON-NLS-1$
|
||||
marker.delete();
|
||||
} catch (BadLocationException e) {
|
||||
// TODO: log the error
|
||||
|
|
|
@ -95,7 +95,7 @@ public class CodanPreferencesLoader {
|
|||
public String getProperty(String id) {
|
||||
IProblem prob = baseModel.findProblem(id);
|
||||
if (!(prob instanceof CodanProblem)) return null;
|
||||
String enabled = prob.isEnabled() ? "" : "-";
|
||||
String enabled = prob.isEnabled() ? "" : "-"; //$NON-NLS-1$ //$NON-NLS-2$
|
||||
String severity = prob.getSeverity().toString();
|
||||
String res = enabled + severity;
|
||||
return res;
|
||||
|
|
Loading…
Add table
Reference in a new issue