Skip to content

Commit 3b2ef44

Browse files
authored
Merge pull request #1710 from geoffw0/oddsandends
CPP: Delete invalid URL
2 parents d0a7614 + d1093ca commit 3b2ef44

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

cpp/ql/src/Best Practices/Likely Errors/Slicing.ql

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@
1212

1313
import cpp
1414

15-
//see http://www.cs.ualberta.ca/~hoover/Courses/201/201-New-Notes/lectures/section/slice.htm
16-
//Does not find anything in rivers (unfortunately)
1715
from AssignExpr e, Class lhsType, Class rhsType
1816
where
1917
e.getLValue().getType() = lhsType and
@@ -22,6 +20,6 @@ where
2220
exists(Declaration m |
2321
rhsType.getAMember() = m and
2422
not m.(VirtualFunction).isPure()
25-
) //add additional checks for concrete members in in-between supertypes
23+
) // add additional checks for concrete members in in-between supertypes
2624
select e, "This assignment expression slices from type $@ to $@", rhsType, rhsType.getName(),
2725
lhsType, lhsType.getName()

0 commit comments

Comments
 (0)