File tree 1 file changed +3
-4
lines changed
1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -33,14 +33,12 @@ typedef std::map<std::string, TDefByFile> TDefByChecker;
33
33
struct DefLookup ::Private {
34
34
TDefByChecker stor;
35
35
bool usePartialResults;
36
- MsgFilter *filt;
37
36
};
38
37
39
38
DefLookup::DefLookup (const bool usePartialResults):
40
39
d(new Private)
41
40
{
42
41
d->usePartialResults = usePartialResults;
43
- d->filt = MsgFilter::inst ();
44
42
}
45
43
46
44
DefLookup::DefLookup (const DefLookup &ref):
@@ -80,8 +78,9 @@ bool DefLookup::lookup(const Defect &def) {
80
78
return false ;
81
79
82
80
// simplify path
81
+ MsgFilter *filter = MsgFilter::inst ();
83
82
const DefEvent &evt = def.events [def.keyEventIdx ];
84
- const std::string path (d-> filt ->filterPath (evt.fileName ));
83
+ const std::string path (filter ->filterPath (evt.fileName ));
85
84
86
85
// look for file name
87
86
TDefByFile &row = iRow->second ;
@@ -105,7 +104,7 @@ bool DefLookup::lookup(const Defect &def) {
105
104
// look by msg
106
105
TDefByMsg &zCol = iZCol->second ;
107
106
TDefByMsg::iterator iCell = zCol.find (
108
- d-> filt ->filterMsg (evt.msg , def.checker ));
107
+ filter ->filterMsg (evt.msg , def.checker ));
109
108
if (zCol.end () == iCell)
110
109
return false ;
111
110
You can’t perform that action at this time.
0 commit comments